Skip to content

Delete a task and its files.

Request

Delete a finished task identified by task_id, including all associated input files and generated outputs. Provide the task_id returned by the task's run endpoint.

Security
BearerAuthenticationV2
Bodyapplication/jsonrequired
task_idstringrequired

The task id returned by the task's run endpoint.

Example:"grH0CvsgXuAIHLUzD0V1Ol34hoet3R1tvdbtiVHrDb6_UqCLKIejAIajwxrhOAfe"
POST
/s2s/v2.0/task/delete
curl -i -X POST \
  https://yce-api-01.makeupar.com/s2s/v2.0/task/delete \
  -H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
  -H 'Content-Type: application/json' \
  -d '{
    "task_id": "grH0CvsgXuAIHLUzD0V1Ol34hoet3R1tvdbtiVHrDb6_UqCLKIejAIajwxrhOAfe"
  }'

Responses

The task and its files were deleted

Bodyapplication/json
statusinteger

Response status

Example:200
Response
{ "status": 200 }