Web Assets

Delete folder permanently

Changed on

Permanently delete a folder and all its contents from the system using its path

post/api/v1/assets/folders/_delete

Request

Request body

assetPathstring required

Full path to the folder to be deleted permanently (must end with /)

Example request

{
  "assetPath": "//demo.dotcms.com/old-projects/"
}

Response

Folder 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