DELETE
/
v1
/
snippets
/
{id}
Delete a snippet
curl --request DELETE \
  --url https://api.checklyhq.com/v1/snippets/{id} \
  --header 'Authorization: <api-key>'
This response does not have an example.

Overview

The Delete Snippet endpoint permanently removes a code snippet from your account. This action cannot be undone and will cause failures in any checks that reference the deleted snippet. Common Use Cases:
  • Code Cleanup
  • Unused Snippet Removal
  • Resource Management
  • Account Maintenance
Deleting snippets is permanent and will cause failures in any checks that reference them. Ensure no active checks depend on the snippet before deletion.
Before deleting snippets, review all checks to ensure they don’t reference the snippet. Consider updating dependent checks first.

Authorizations

Authorization
string
header
required

The Checkly Public API uses API keys to authenticate requests. You can get the API Key here.

Your API key is like a password: keep it secure!

Authentication to the API is performed using the Bearer auth method in the Authorization header and using the account ID.

For example, set Authorization header while using cURL:

curl -H "Authorization: Bearer [apiKey]" "X-Checkly-Account: [accountId]"

Headers

x-checkly-account
string

Your Checkly account ID, you can find it at https://app.checklyhq.com/settings/account/general

Path Parameters

id
integer
required

Response

No Content