Skip to main content
DELETE
/
api
/
v1
/
files
/
{fileId}
Delete file
curl --request DELETE \
  --url https://handauncle-backend-prod-205012263523.asia-south1.run.app/api/v1/files/{fileId} \
  --header 'Authorization: Bearer <token>'
{
  "success": true,
  "data": {
    "message": "<string>"
  },
  "meta": {
    "timestamp": "2023-11-07T05:31:56Z",
    "requestId": "<string>"
  }
}
Deletes the GCS object and its MongoDB metadata after confirming the caller owns the file. Use this when a user removes an attachment from their asset library.

Authorizations

Authorization
string
header
required

Auth0 access token for registered users.

Path Parameters

fileId
string
required

File identifier (MongoDB ObjectId).

Response

File deleted.

success
enum<boolean>
required
Available options:
true
data
object
required
meta
object
required