OpenFolia

Delete an unused branding image

DELETE
/branding/images/{hash}

Deletes an image uploaded for the branding that no field names, however recent: its record and its file, unless a change set holds an upload of the same bytes, content refers to them (a module or page design at any branch or tag, an open change set, a working copy), or they are an import's bundle or a release's file; then the file stays. Audited as branding.image-delete (fileKept). One a field names is 409 branding-image-in-use (meta.usedIn). An unused image is also removed on its own a day after its upload. Needs the admin.branding permission.

Authorization

bearer
headerAuthorizationBearer <JWT>

A service account's token (ccms_sat_…, issued by POST /service-accounts/{id}/tokens), or, for local use and demo mode, the server's shared CCMS_API_TOKEN.

Path Parameters

hash*string

SHA-256 of the image, 64 lowercase hex characters.

Header Parameters

X-Ccms-User?string

Demo mode only (CCMS_AUTH_MODE=demo): the user ID to act as. The bearer token is still required; without demo mode the header is refused (400).

Response Body

Deleted.

Example Request
curl -X DELETE 'http://localhost:3000/branding/images/string'
Example Response
Empty