---
schema_version: "1"
id: d87f9e311e7d50c1a1b28b86e99131ac896944cca82725d523f586ceded61654
title: InvokeDelete
collection: developer
version: current
locale: en-us
portal_url: https://docs.salesforce.com/developer/current/en-us/marketing-cloud/guides/mc-programmatic-content/ssjs_platformAPIInvokeDelete.md
canonical_url: https://developer.salesforce.com/docs/marketing/marketing-cloud/guide/ssjs_platformAPIInvokeDelete.html
source_site: developer.salesforce.com
content_type: documentation
content_hash: e374e892f1c1402c70354944fb7d4f777adbaddee6e98a5b24fa193c00eb7f57
products:
  - Marketing Cloud Engagement APIs and Programmatic Languages
  - Marketing Cloud
---
# InvokeDelete

## Overview

Invokes the Delete method on the specified object

### Syntax

InvokeDelete(1, 2, 3)

### Function Properties

<!--complex table-->

| Ordinal | Type   |              | Description                                                         |
| ------- | ------ | ------------ | ------------------------------------------------------------------- |
| **1**   | string | **Required** | Object on which to perform Delete method                            |
| **2**   | array  | **Required** | Array containing status and RequestID of API call                   |
| **3**   | string | **Required** | API configure options to include in call. Can contain a null value. |

## Example

```
<script runat="server">
     var StatusAndRequestID = [0,0];
     var newObject = Platform.Function.InvokeDelete(DeleteRequest,StatusAndRequestID,Options);
     var status = StatusAndRequestID[0];
     var requestID = StatusAndRequestID[1];
</script>
```
