delete https://api.voicecreator.ai/api/v1/tools/
Delete a tool.
This endpoint deletes a specific tool by its ID.
The tool must belong to the specified organization unless accessed through the admin API.
Parameters:
tool_id (int): The ID of the tool to delete
request (Request): The FastAPI request object
db (AsyncSession): The database session (injected)
organization_id (Optional[int]): The organization ID from the API key or request
Returns:
Tool: The deleted tool
Raises:
HTTPException:
- 400: If organization ID is missing
- 404: If the tool is not found or doesn't belong to the organization
- 500: If an unexpected error occurs during deletion