Files
animethemes-api-docs/docs/jsonapi/reference/content/audio/destroy/index.md
T
2025-12-17 22:53:18 -03:00

1018 B

title
title
Audio Destroy

Audio Destroy Endpoint

The audio destroy endpoint soft deletes an audio and returns the deleted audio resource.

For example, the /audio/Bakemonogatari-OP1.ogg endpoint will soft delete the Bakemonogatari-OP1.ogg audio and return the deleted Bakemonogatari-OP1.ogg resource.

URL

DELETE /audio/{basename}

Authentication

Required Permission: delete audio

Roles with Permission: Encoder, Admin

Other Requirements: Audio must not be soft deleted

Parameters

None

Response

{
    audio: {
        id: id,
        basename: "basename",
        filename: "filename",
        path: "path",
        size: size,
        mimetype: "mimetype",
        created_at: "created_at",
        updated_at: "updated_at",
        deleted_at: "deleted_at",
        link: "link",
        views_count: views_count
    }
}

Example

curl -X DELETE -H "Authorization: Bearer {token}" https://api.animethemes.moe/audio/Bakemonogatari-OP1.ogg