Finetuning.aiFinetuning.ai

POST /v1/generations/bulk-delete

Permanently delete up to 100 tracks in one request

Permanently delete up to 100 of your tracks in a single request. Deleted tracks disappear from your library, any playlists they were in, and all public pages immediately — this cannot be undone via the API.

Each ID is checked individually, so one bad ID doesn't fail the whole request: the response lists what was deleted plus a per-item errors array for anything that wasn't.

Request

POST https://pub.finetuning.ai/v1/generations/bulk-delete

Headers

HeaderTypeRequiredDescription
X-API-KeystringYesYour API key
Content-TypestringYesapplication/json

Body

FieldTypeRequiredDescription
idsstring[]Yes1–100 track IDs you own

Example

curl -X POST https://pub.finetuning.ai/v1/generations/bulk-delete \
  -H "X-API-Key: ft_live_your_key_here" \
  -H "Content-Type: application/json" \
  -d '{"ids": ["a4f6c1e9-2d3b-4c8a-9e5f-7b1d0c2a8e64", "c7d2e8a1-5f4b-4e9c-8a6d-3b9f1e0c5a72", "f0a3b6d9-8c2e-4f5a-b1c7-6e4d2a9b0c38"]}'

Response

200 OK
{
  "data": {
    "deleted": ["a4f6c1e9-2d3b-4c8a-9e5f-7b1d0c2a8e64", "c7d2e8a1-5f4b-4e9c-8a6d-3b9f1e0c5a72"],
    "errors": [
      { "id": "f0a3b6d9-8c2e-4f5a-b1c7-6e4d2a9b0c38", "error": "Track not found or not owned by you" }
    ]
  }
}

Response fields

FieldTypeDescription
data.deletedstring[]IDs that were successfully deleted
data.errorsarrayPer-item failures — omitted when every ID succeeded
data.errors[].idstringThe ID that failed
data.errors[].errorstringWhy it failed

The request returns 200 OK even if nothing was deleted — check data.deleted rather than the status code. A track fails individually if it doesn't exist, was already deleted, or belongs to another user.

Errors

CodeStatusDescription
VALIDATION_ERROR400ids is missing, empty, contains non-strings, or has more than 100 items
MISSING_API_KEY401X-API-Key header was not provided
INVALID_API_KEY401API key is malformed, revoked, or does not exist
INTERNAL_ERROR500Unexpected server error

On this page