Browse the help center

Delete a media library file

Removes the file from the library and from the creative editor's picker.

Reference
POST https://YOUR-NETWORK-DOMAIN/rest-api/media-library/assets/{assetId}/delete.do

Removes the file from the library and from the creative editor's picker. Creatives already using it keep serving it: the stored file is erased only once no live creative uses it any more. 'usedIn' is the number of live creatives still serving it. A user with shared advertisers may delete only files uploaded for one of their advertisers. Requires the MEDIA_LIBRARY permission and update rights on campaigns.

Path Params

assetId integer required

Media library file id

42

Responses

200

{success, assetId, usedIn}

400

Bad request — invalid or missing parameters

401

Authentication error

403

The role lacks MEDIA_LIBRARY or campaign update rights, or no rights on the file's advertiser

404

No such file, it is already deleted, or the user cannot see it

Please disable Adblock
Are you using adblock? Disable it and reload the page to proceed to the destination page.

A registration has already been submitted from this page. Please try again in 10 minutes.