Skip to the page

Delete event

Forgets an event and its types. Automations that listen for its name keep listening, what was received stays listed for ninety days, and sending it again defines it again.

opensend.events.remove(id)
Needs the scopeevents:writeFrom a terminalopensend events remove

Input

id goes first, on its own, and the rest in one object. One object that holds id works too.

  • idstringRequired

    The id or the name of the event. Up to 120 characters.

Returns

The call resolves to the answer, already parsed. A call the API refuses throws OpenSendError with the code and the message of the answer. SDK lists the errors of the client itself.

  • objectstring

    What kind of thing was removed.

    One oflistemailbroadcastaudiencetemplatetemplate_versiontemplate_starterautomationmetricsdomainapi_keywebhooklogworkspacemembermethodaccountinbound_emailwebhook_deliverycontactplancheckoutinvoiceask_answersuppressionchatautomation_runeventevent_receiptimportimport_inventorytopiccontact_propertyimageserver

  • idstring

    The id of what was removed.

  • deletedtrue

    Always true: it is gone for good.