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