Skip to main content
DELETE
/
api
/
v1
/
endpoints
/
{slug}
curl --request DELETE \
  --url http://localhost:8080/api/v1/endpoints/legal-qa \
  --header 'Authorization: Bearer YOUR_TOKEN'
{
  "message": "Endpoint 'legal-qa' successfully deleted"
}
Permanently delete an endpoint and remove it from all marketplaces.
This operation is irreversible. Deleting an endpoint will remove it from all marketplaces and terminate all active queries. Make sure to unpublish the endpoint first if you want to keep it but make it unavailable.

Authentication

Requires tenant authentication via SyftBox token.

Path parameters

slug
string
required
The unique slug of the endpoint to delete.

Response

message
string
required
Confirmation message indicating successful deletion.
curl --request DELETE \
  --url http://localhost:8080/api/v1/endpoints/legal-qa \
  --header 'Authorization: Bearer YOUR_TOKEN'
{
  "message": "Endpoint 'legal-qa' successfully deleted"
}
Before deleting an endpoint:
  1. Unpublish it from all marketplaces using the unpublish endpoint
  2. Ensure no active queries are in progress
  3. Consider backing up any configuration or policy settings

Build docs developers (and LLMs) love