Sample - Twilio API
DELETE/2010-04-01/Accounts/{AccountSid}/Keys/{Sid}.json

Delete an API key

Deletes a specific API Key from an account. Supply the account SID and key SID to identify the resource to remove.

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

2 parameters
AccountSidstringrequired
The account SID that created the API Key, matching the 34-character `AC` SID format.
Sidstringrequired
The unique API Key SID to delete, matching the 34-character `SK` SID format.

1 status code
204Returns no response content after the API Key is deleted successfully.

Error handling

AccountSid must be a 34-character account SID beginning with AC, and Sid must be a 34-character key SID beginning with SK. Both identifiers must use hexadecimal characters after their prefixes.