Media
Delete a file
DELETE
Removes a file from the library. A file used by a post that has not gone out is refused with media.in_use, listing those posts in error.details.posts. With force=true it is kept until those posts go out and removed afterwards (deferred: true).
header
AuthorizationBearer <token>Send your key as Authorization: Bearer eksis_sk_....
mediaId*stringforce?stringDelete even when a post still uses the file.
Value in
"true""false"The file was deleted, or will be once the posts using it go out.
application/json- response
data?curl -X DELETE 'https://api.eksis.io/v1/media/string' \ -H 'Authorization: Bearer eksis_sk_...'{ "data": { "id": "string", "deleted": true, "deferred": true, "affectedPosts": 0 }}