Move agent to the trash
DELETE
/agents/{id}
const url = 'https://api.somebodyai.co/api/v1/agents/507f1f77bcf86cd799439011';const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request DELETE \ --url https://api.somebodyai.co/api/v1/agents/507f1f77bcf86cd799439011 \ --header 'Authorization: Bearer <token>'Moves an agent to the trash, where it is hidden and unplayable but can be restored for 30 days via POST /agents/trash/{id}/restore. DELETE /agents/trash/{id} removes it for good.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”id
required
MongoDB ObjectId
string
MongoDB ObjectId
Responses
Section titled “Responses”Agent deleted
Media typeapplication/json
object
success
required
boolean
Example
{ "success": true}Unauthorized - missing or invalid auth
Media typeapplication/json
object
error
required
string
details
Array<string>
Example
{ "error": "Resource not found", "details": [ "Field is required" ]}Resource not found
Media typeapplication/json
object
error
required
string
details
Array<string>
Example
{ "error": "Resource not found", "details": [ "Field is required" ]}