Delete

Use the Delete method to delete objects individually or in batches. Multiple object types can be deleted with one call. Objects are deleted in the order they are added to the APIObject array.

NameData TypeDescription
ObjectsAPIObject[]A collection of one or more objects to delete. The objects are deleted in the order they have been acted upon: first in, first out. This array can hold different object types, which allows you to perform complex interactions like deleting an account and two emails, in one call.
OptionsDeleteOptionsOptionally specifies more processing options. A DeleteOptions instance is required for this parameter. However, no properties need to be defined for the instance.
OverallStatusStringSpecifies the overall status of the request. Valid status values include:
  • OK - This status code states that all objects were successfully deleted.
  • Has Error - Valid for Delete method calls with multiple APIObject objects, this status code states that some of the operations failed, while some succeeded.
  • Error - This status code states that all delete operations failed during validation or processing.
RequestIDStringMarketing Cloud's unique identifier for every request. This string contains an output variable of the key of the request. By default, this value is a Marketing Cloud generated GUID.

NameData TypeDescription

DeleteResult

Array

An array of objects holding a list of return values. The objects are returned in the order they are deleted: first in, first out. This array contains one DeleteResult object per input APIObject.