Delete Asset

Deletes one or more assets from your library.

Request

Request syntax:

GET /api2/asset/delete

Request parameters:

Pass the following parameters through the msg parameter:

A valid request must identify one or more assets by including the ids and/or external_ids parameter(s).

Request ParameterTypeDescription
idsListIdentifies one or more assets to be deleted by asset IDThis unique ID identifies an asset. View this ID by navigating to the Content tab, selecting the desired asset, and then viewing the GUID option from the Details tab..
external_idsListIdentifies one or more assets to be deleted by external ID.

Response

A response body parameter is described below.

Response ParameterTypeDescription
deletedListA list of assets that were deleted. Each item in the list contains id and external_id members.

Sample Request/Response

The following sample request deletes three assets identified by an asset ID and two external IDs. The Call() function, which is imported from uplynk_api2_auth module, prepares the message body and digital signature.

from uplynk_api2_auth import Call

print(Call('/api2/asset/delete', ids=['0a671113bebb4192bf679db9ee146051'],
             external_ids=['ad10115', 'challenge_s01e03']))

{
    "deleted": [
        {
            "external_id": "clip7",
            "id": "0a671113bebb4192bf679db9ee146051"
        },
        {
            "external_id": "challenge_s01e03",
            "id": "54e40044a5f84050a483a5ce91cedab1"
        },
        {
            "external_id": "ad10115",
            "id": "9c4e00aab263489aa7fd275a0c5cc478"
        }
    ],
    "error": 0
}