TikTok for Developers

Developer Docs

Last updated November 24, 2026

Delete Mini Drama Videos

Deletes up to 20 videos from a BytePlus space in one batch. TikTok refuses to delete a video that the online version of a mini drama references. Check each item in result_list, because a batch can partially succeed.

Endpoint

HTTP URL

https://open.tiktokapis.com/v2/sg/shortdrama/video/delete/

HTTP method

POST

Scopes

None

Content type

application/json

Request

Headers

Field

Type

Description

Required

Example

Authorization

string

The client access token of your mini app, prefixed with Bearer.

Yes

Bearer clt.example12345Example12345Example

client-key

string

The client key of the calling mini app.

Yes

mnexample12345

Content-Type

string

The media type of the request body.

Yes

application/json

Request body

The BytePlus account and space must be bound to the calling mini app. All videos in a batch must belong to the same account and space.

Field

Type

Description

Required

Example

byteplus_account_id

string

The ID of the BytePlus account.

Yes

3000000000

space_name

string

The name of the BytePlus space.

Yes

shortdrama-sg

vid_list

list<string>

The IDs of the videos to delete. Minimum: 1. Maximum: 20. Empty IDs aren't allowed.

Yes

["v0d000example0000000000000000001"]

Remove duplicate IDs before you send the request. If vid_list contains a duplicate, TikTok processes the first occurrence and returns a parameter error for later ones. Duplicates count toward the 20-item limit.

Request example

curl --location --request POST 'https://open.tiktokapis.com/v2/sg/shortdrama/video/delete/' \
--header 'Authorization: Bearer CLIENT_ACCESS_TOKEN' \
--header 'client-key: CLIENT_KEY' \
--header 'Content-Type: application/json' \
--data-raw '{
  "byteplus_account_id": "BYTEPLUS_ACCOUNT_ID",
  "space_name": "SPACE_NAME",
  "vid_list": ["VID_1", "VID_2"]
}'

Replace the following:

  • CLIENT_ACCESS_TOKEN: your mini app's client access token.
  • CLIENT_KEY: your mini app's client key.
  • BYTEPLUS_ACCOUNT_ID: the ID of the BytePlus account bound to your mini app.
  • SPACE_NAME: the name of your BytePlus space.
  • VID_1, VID_2: the IDs of the videos to delete.

Response

Response body

If request validation fails, the response can contain only error.

Field

Type

Description

data

DeleteVideosData

The batch result.

error

ErrorStruct

The error object.

DeleteVideosData

Field

Type

Description

Example

result_type

int32

The overall batch result. One of:
• 1: All videos were deleted.
• 2: Some videos were deleted.
• 3: No videos were deleted.

2

result_list

list<BatchDeleteShortDramaVideoItemResult>

The result for each video, in the same order as vid_list.

See BatchDeleteShortDramaVideoItemResult.

BatchDeleteShortDramaVideoItemResult

Field

Type

Description

Example

vid

string

The ID of the video.

v0d000example0000000000000000002

result_type

int32

The result for this video. One of:
• 1: Deleted.
• 3: Failed.

3

error_code

int32

The error code. Returned only when deletion fails.

22101

error_message

string

The error description. Returned only when deletion fails.

Video is referenced by a currently online album version

related_album_versions

list<ShortDramaAlbumVersionReference>

The mini dramas and versions that reference the video. Returned only when deletion is refused because an online version references the video.

See ShortDramaAlbumVersionReference.

ShortDramaAlbumVersionReference

Field

Type

Description

Example

album_id

int64

The ID of the mini drama that references the video. Preserve 64-bit precision when you parse it.

7300000000000000001

version

int32

The online version that references the video.

2

Note: error.code is a string, but result_list[].error_code is an integer.

ErrorStruct

Field

Type

Description

code

string

The error code. Omitted on success.

message

string

A human-readable description of the error.

log_id

string

The unique identifier for the request. Include this value when contacting support.

Response example

{
  "data": {
    "result_type": 2,
    "result_list": [
      {
        "vid": "v0d000example0000000000000000001",
        "result_type": 1
      },
      {
        "vid": "v0d000example0000000000000000002",
        "result_type": 3,
        "error_code": 22101,
        "error_message": "Video is referenced by a currently online album version",
        "related_album_versions": [
          {
            "album_id": 7300000000000000001,
            "version": 2
          }
        ]
      }
    ]
  },
  "error": {
    "log_id": "202508010000000000000000000000000"
  }
}

Error codes

Error code

Description

Resolution

5001

The service is temporarily unavailable.

Retry later. If the error persists, contact support with the log_id.

1121003

vid_list contains more than 20 videos.

Split the request into batches of 20 or fewer and retry.

1121004

vid_list contains a duplicate video ID.

Remove duplicates and retry.

1121007

The request is invalid.

Check the required fields, video IDs, and field limits, then retry.

1121201

An online mini drama version references the video.

Remove the reference before you delete the video.

1121405

The BytePlus account, space, or video doesn't match.

Correct the account and space, then retry.

1221101

The video doesn't exist in BytePlus.

Verify the vid, account, space, and region.

1221502

BytePlus couldn't delete the video.

Check the video's state and retry later.

TikTok for Developers