delete #
Deletes a previously uploaded file.
Query Syntax #
HTTP #
URL: http://kuzzle:7512/_plugin/s3/files/<fileKey>
Method: DELETE
Other protocols #
{
"controller": "s3/file",
"action": "delete",
"fileKey": "xen/<uuid>-headcrab.png"
}
Arguments #
fileKey
: file key in S3 bucket
Response #
Returns a boolean indicating that the file has been deleted from S3.
{
"status": 200,
"error": null,
"action": "delete",
"controller": "s3/file",
"requestId": "<unique request identifier>",
"result": true
}
Possible errors #
Edit this page on Github(opens new window)