Delete via WSProxy

To delete a single item or several items of the same type in a single call, use the deleteItem and deleteBatch functions.

  • Specify the first two parameters of the delete functions like you do for the create functions.
  • The optional third parameter includes any properties to be set using the SOAP DeleteOptions object.

This example deletes a data extension using its ObjectID.

The returned object has the same properties as the Create functions, except the results contain properties from the SOAP DeleteResult items.

Create via WSProxy