Official Plugins (Kuzzle v2.x)
S3 v3.x
2

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 bucket
  • bucketName : Bucket name
  • bucketName : 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 #