Skip to main content
DELETE
/
api
/
access
/
:accessID
Delete Access
curl --request DELETE \
  --url https://api.example.com/api/access/:accessID
{
  "message": "<string>",
  "401 Unauthorized": {},
  "400 Bad Request": {},
  "404 Not Found": {},
  "403 Forbidden": {},
  "500 Internal Server Error": {}
}
Delete an existing access record and revoke the associated link.

Authentication

This endpoint requires authentication. Include a valid JWT token in the Authorization header.

Path Parameters

accessID
integer
required
The unique identifier of the access record to delete

Response

message
string
Success message confirming access deletion

Error Responses

401 Unauthorized
object
User not authenticated
400 Bad Request
object
Invalid access ID
404 Not Found
object
Access record or file not found
403 Forbidden
object
User doesn’t own the file
500 Internal Server Error
object
Failed to delete access record
curl -X DELETE https://api.defdrive.com/api/access/456 \
  -H "Authorization: Bearer YOUR_JWT_TOKEN"

Build docs developers (and LLMs) love