cURL
curl --request DELETE \ --url https://api.x.com/2/media/subtitles \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "id": "1146654567674912769", "language_code": "EN", "media_category": "TweetVideo" }'
{ "data": { "deleted": true }, "errors": [ { "detail": "<string>", "status": 123, "title": "<string>", "type": "<string>" } ] }
Deletes subtitles for a specific Media file.
The access token received from the authorization server in the OAuth 2.0 flow.
The request has succeeded.
The response is of type object.
object