Delete Label

Soft-delete an annotation label.

Delete Label

Soft-delete an annotation label by its ID. Deleted labels are no longer available for new annotations but existing scores referencing them are preserved.

DELETE https://api.futureagi.com/model-hub/annotations-labels/{id}/
Bearer
          Click "Try It" to send a request
        

Authentication

All requests require authentication via API keys:

HeaderDescription
X-Api-KeyYour API key
X-Secret-KeyYour secret key

Path Parameters

id string Required

UUID of the annotation label to delete.

Response

Returns 204 No Content on success. The response body is empty.

Note

This performs a soft-delete. The label is marked as deleted and will no longer appear in list queries, but it is not permanently removed. Use the Restore Label endpoint to undo a deletion.

Code Examples

import requests

label_id = "your-label-uuid"
url = f"https://api.futureagi.com/model-hub/annotations-labels/{label_id}/"
headers = {
    "X-Api-Key": "YOUR_API_KEY",
    "X-Secret-Key": "YOUR_SECRET_KEY",
}

response = requests.delete(url, headers=headers)

if response.status_code == 204:
    print("Label deleted successfully")
const labelId = "your-label-uuid";

const response = await fetch(
  `https://api.futureagi.com/model-hub/annotations-labels/${labelId}/`,
  {
    method: "DELETE",
    headers: {
      "X-Api-Key": "YOUR_API_KEY",
      "X-Secret-Key": "YOUR_SECRET_KEY",
    },
  }
);

if (response.status === 204) {
  console.log("Label deleted successfully");
}
curl -X DELETE "https://api.futureagi.com/model-hub/annotations-labels/your-label-uuid/" \
  -H "X-Api-Key: YOUR_API_KEY" \
  -H "X-Secret-Key: YOUR_SECRET_KEY" \
  -w "\nHTTP Status: %{http_code}\n"
Was this page helpful?

Questions & Discussion