DELETE/image/sources/{image_source_id}

Delete an image source

Deletes an image source and stops image delivery using its subdomain. Use image_source_id to select the source you want to remove; you can find the identifier in the dashboard or the source listing. Review any image delivery dependencies before deleting the source.

1 parameter
image_source_idstringrequired

The image source identifier, available in the dashboard or from the source listing.

5 status codes
200Returns an empty object after the image source is deleted.
400Returned when the request is malformed.

One documented failure

  • source_not_found

    Could not find any image source with the specified source_id.

errorobjectrequired
401Returned when the API key or bearer token is missing or invalid.

One documented failure

  • invalid_api_key

    API key supplied with request is invalid

errorobjectrequired
403Returned when the account is unpaid or the authenticated user lacks the required role permissions.

One documented failure

  • unauthorized

    You don't have access to this feature. Please contact your organization owner.

errorobjectrequired
404Returned when the image source is not found.

One documented failure

  • source_not_found

    Could not find any image source with the specified source_id.

errorobjectrequired

Error handling

A 400 is returned for a bad request, a 401 when the API key or bearer token is missing or invalid, a 403 when the account is unpaid or lacks the required role permissions, and a 404 when the source is not found. The image_source_id path parameter must identify the image source you want to delete.