Delete multiple tickets permanently

DELETE {{baseUrl}}/api/v2/deleted_tickets/destroy_many?ids=<string>

Permanently deletes up to 100 soft-deleted tickets. See Soft delete in the Zendesk GDPR docs. To soft delete tickets, use the Bulk Delete Tickets endpoint.

This endpoint accepts a comma-separated list of up to 100 ticket ids. It enqueues a ticket deletion job and returns a payload with the jobs status.

If one ticket fails to be deleted, the endpoint still attempts to delete the others. If the job succeeds, the tickets that were successfully deleted are permanently deleted. This operation can't be undone.

This endpoint returns a job_status JSON object and queues a background job to do the work. Use the Show Job Status endpoint to check for the job's completion.

Allowed For

  • Agents

Request Params

KeyDatatypeRequiredDescription
idsstring(Required) Comma-separated list of ticket ids

HEADERS

KeyDatatypeRequiredDescription
Acceptstring

RESPONSES

status: OK

{&quot;job_status&quot;:{&quot;id&quot;:&quot;82de0b044094f0c67893ac9fe64f1a99&quot;,&quot;message&quot;:null,&quot;progress&quot;:null,&quot;results&quot;:null,&quot;status&quot;:&quot;queued&quot;,&quot;total&quot;:null,&quot;url&quot;:&quot;https://example.zendesk.com/api/v2/job_statuses/82de0b0467893ac9fe64f1a99.json&quot;}}