Delete a song
November 14, 2026 (December 1, 2026)
Table of contents
Delete a song from the ACE Music Library of the account that holds it. ACE Music moves it to the account’s trash. You can restore it from there, but only on acemusic.ai. For the API the song is gone. Its songId answers 404, and so does a job whose songs were all deleted.
https://api.useapi.net/v1/acemusic/music/
songId
songIdis required. A songId (user:[email protected]:so_...) from a finished job, GET /music or POST /files, URL-encoded. The request runs on the account that holds it.
Request Headers
Authorization: Bearer {API token}
API tokenis required. Setup useapi.net shows where to get it.
Responses
-
The song was moved to the account’s ACE Music trash, where it can be restored on acemusic.ai only. Through the API it is gone. No body.
-
The request itself is wrong. Fix what the text names, then send it again.
The body could not be read. It is not valid JSON, or a multipart upload was sent without its boundary.
{ "error": "Path parameter songId (so_3f9c) is not a valid songId (user:<id>-<email>-song:so_…)", "code": 400 }{ "error": "Invalid JSON: Unexpected token 'o', \"not json\" is not valid JSON", "code": 400 } -
The useapi.net API token is missing or wrong.
{ "error": "useapi.net ⁝ Unauthorized", "code": 401 } -
The useapi.net subscription is not active.
{ "error": "useapi.net ⁝ Your account has no subscription, please subscribe to our services before submitting requests", "code": 402 } -
The song belongs to another useapi.net user.
{ "error": "Song user:[email protected]:so_8b1d5e0a47c92f63d1a8b5c0 is not yours", "code": 403 } -
The account is not connected (never added, or removed).
The song is already deleted at ACE Music.
{ "error": "Account [email protected] is not configured", "code": 404 }{ "error": "Deleting the song: Not found", "code": 404 } -
ACE Music is limiting requests right now. The text gives its reason.
Wait the seconds in the
Retry-Afterheader, or 30 seconds if there isn’t one, then send the request again.{ "error": "Deleting the song: HTTP 429", "code": 429 } -
Something failed on our side.
{ "error": "Something went wrong on our side, please retry", "code": 500 }{ "error": "Deleting the song: ACE Music refused the call (HTTP 403). This is unexpected, please report it to support", "code": 500 } -
ACE Music couldn’t take the request right now, or the account’s session is being renewed. This happens before any step that charges, so nothing was charged.
Wait the seconds in the
Retry-Afterheader, or 10 seconds if there isn’t one, then send the request again.{ "error": "ACE Music sign-in for [email protected] failed moments ago, please retry shortly", "code": 503 }{ "error": "ACE Music sign-in for [email protected] failed (ACE Music did not answer within 30 s), please retry shortly", "code": 503 }{ "error": "ACE Music session renewal for [email protected] failed (HTTP 503), please retry shortly", "code": 503 }{ "error": "ACE Music session renewal for [email protected] is in progress, please retry shortly", "code": 503 }{ "error": "ACE Music sign-in for [email protected] is in progress, please retry shortly", "code": 503 }{ "error": "ACE Music refused the session for [email protected] right after a fresh sign-in, please retry shortly", "code": 503 } -
596 Account Error
ACE Music refused the account’s stored email and password. Add the account again with the current password (POST /accounts).
{ "error": "Account [email protected]: ACE Music refused the stored email and password. Update the password with POST /accounts to resume using this account", "code": 596 }
Examples
-
curl -X DELETE "https://api.useapi.net/v1/acemusic/music/user:[email protected]:so_3f9c2a7d81e64b05a9d2c4e7" \ -H "Authorization: Bearer YOUR_API_TOKEN" -
const response = await fetch('https://api.useapi.net/v1/acemusic/music/user:[email protected]:so_3f9c2a7d81e64b05a9d2c4e7', { method: 'DELETE', headers: { 'Authorization': 'Bearer YOUR_API_TOKEN' } }) console.log(response.status, await response.text()) -
import requests response = requests.delete( 'https://api.useapi.net/v1/acemusic/music/user:[email protected]:so_3f9c2a7d81e64b05a9d2c4e7', headers={'Authorization': 'Bearer YOUR_API_TOKEN'}, ) print(response.status_code, response.text)