Skip to main content
POST
Delete Model

Body Parameters

string
required
The unique identifier of the model to delete

Response

boolean
Returns true if the model was successfully deleted, false otherwise

Example Request

Example Response

Error Responses

Unauthorized - Model not found
Unauthorized - User does not have permission to delete this model

Permissions

To delete a model, the user must:
  • Be an admin user, OR
  • Be the owner of the model (user_id matches), OR
  • Have write access granted through access_grants

Side Effects

Deleting a model will:
  1. Remove all access grants associated with the model
  2. Permanently delete the model from the database
  3. The model ID will become available for reuse
This operation cannot be undone. Make sure to export the model configuration if you need to recreate it later.

Alternative: Delete All Models

Admins can delete all models at once using:
This endpoint:
  • Requires admin privileges
  • Deletes all models in the database
  • Revokes all associated access grants
  • Returns true on success
Warning: This is a destructive operation that cannot be undone. Use with extreme caution.