Sample - Slack Web API
POST/admin.conversations.delete

Delete a channel

Deletes a public or private channel. Supply channel_id in the form body and authenticate with a token that has the admin.conversations:write scope.

  • RetriesRetries up to 2×, 500ms backoff, 30s timeout.

1 parameter · 1 body field
tokenstringrequired
Authentication token with the `admin.conversations:write` scope.

Form-encoded channel deletion request.

channel_idstringrequired
The channel to delete.

2 status codes
200Returns an object with `ok` set to true when the channel is deleted.
okbooleanrequired
Allowed:true
defaultReturns an object with `ok` set to false and an `error` value describing why the channel could not be deleted.
errorstringrequired
Allowed:feature_not_enablednot_an_adminchannel_not_foundchannel_type_not_supporteddefault_org_wide_channelrestricted_actioncould_not_delete_channelmissing_scope
okbooleanrequired
Allowed:false

Error handling

The token must carry the admin.conversations:write scope. channel_id must identify a public or private channel that can be deleted.