file

Delete file or directory

Deletes the specified file or directory from a media directory. Validates the resolved path against the allowed base directory to prevent path traversal.

delete/api/file/{DirName}/**

Request

  • Base URL
    / (relative, and the document was published on a file host, not at the API’s origin)
  • URL
    /api/file/{DirName}/**
  • Auth
    none declared

Response

File or directory deleted

object required

Changes

No recorded changes to this operation across all 62 revisions of this API.