2.2.3.42.2 Delete (Sync)

The Delete element is an optional child element of the Commands element in Sync command requests and responses that deletes an object on the client device or the server. The Delete element is an optional child element of the Responses element in Sync command responses. The object is identified by its ServerId element.

All elements referenced in this section are defined in the AirSync namespace.

Command request/response

Parent elements

Child elements

Data type

Number allowed

Sync command request (section 2.2.1.21)

Commands (section 2.2.3.32)

ServerId (section 2.2.3.166.8)

airsyncbase:InstanceId ([MS-ASAIRS] section 2.2.2.25)

container ([MS-ASDTYPE] section 2.2)

0...N (optional)

Sync command response

Commands

ServerId

Class (section 2.2.3.27.6)

container

0...N (optional)

Sync command response

Responses (section 2.2.3.154)

ServerId

airsyncbase:InstanceId

Status (section 2.2.3.177.17)

container

0...N (optional)

The server is not required to send an individual response for every operation that is sent by the client. The client only receives responses for successful additions, successful fetches, successful changes that include an attachment being added, and failed changes and deletions. When the client does not receive a response, the client MUST assume that the operation succeeded unless informed otherwise.

Protocol Versions

The following table specifies the protocol versions that support this element. The client indicates the protocol version being used by setting either the MS-ASProtocolVersion header, as specified in [MS-ASHTTP] section 2.2.1.1.2.6, or the Protocol version field, as specified in [MS-ASHTTP] section 2.2.1.1.1.1, in the request.

Protocol version

Element support

2.5

Yes

12.0

Yes

12.1

Yes

14.0

Yes

14.1

Yes

16.0

Yes

16.1

Yes

The Delete element is not returned in the Sync response for an SMS deletion when protocol version 14.0 is used.

When protocol version 16.0 or 16.1 is used and the object is a recurrence instance, the object is identified by both the ServerId element of the master item as well as the airsyncbase:InstanceId element of the specific occurrence.