Skip to main content
DELETE
/
byteplus
/
api
/
v3
/
contents
/
generations
/
tasks
/
{id}
Cancel or Delete a Video Generation Task
curl --request DELETE \
  --url https://api.powertokens.ai/byteplus/api/v3/contents/generations/tasks/{id} \
  --header 'Authorization: Bearer <token>'
{}

Authorizations

Authorization
string
header
required

Pass Authorization: Bearer <token> in the request header.

Path Parameters

id
string
required

The ID of the video generation task to be canceled or deleted.

The operation performed by the DELETE API varies depending on the status of the video generation task:

Task StatusCan it be deleted?Operation DescriptionPost-DELETE Task Status
queuedYesThe task is removed from the queue and its status is updated to cancelled.cancelled
runningNo--
succeededYesThe video generation task record is deleted and will no longer be queryable.-
failedYesThe video generation task record is deleted and will no longer be queryable.-
cancelledNo--
expiredYesThe video generation task record is deleted and will no longer be queryable.-

Response

200 - application/json

This API operation has no response parameters.