Web Assets

Delete asset permanently

Changed on

Permanently delete an asset (file) from the system using its path

post/api/v1/assets/_delete

Request

Request body

assetPathstring required

Full path to the asset (file) to be deleted permanently

Example request

{
  "assetPath": "//demo.dotcms.com/uploads/old-document.pdf"
}

Response

Asset deleted successfully

entityboolean
i18nMessagesMapobject
permissionsstring[]

Changes

    • breaking

      request body became required

    • breaking

      removed the media type */* from the request body

    • info

      added the media type application/json to the request body

    • info

      added the non-success response with the status

    • info

      added the non-success response with the status

    • info

      added the non-success response with the status

    • info

      added the success response with the status