Skip to main content
DELETE
/
api
/
lockers
/
{lockerNo}
Delete Locker
curl --request DELETE \
  --url https://api.example.com/api/lockers/{lockerNo}
{
  "lockerNo": "<string>",
  "employeeNumber": "<string>",
  "size": 123,
  "location": "<string>",
  "isEmpty": true
}

HTTP Method and Path

DELETE /api/lockers/{lockerNo}

Path Parameters

lockerNo
string
required
The unique locker number of the locker to delete

Response

Returns the deleted locker object.
lockerNo
string
required
The unique locker number identifier
employeeNumber
string
The employee number that was assigned to this locker
size
integer
required
The size of the locker
location
string
required
The physical location of the locker
isEmpty
boolean
required
Indicates whether the locker was empty

Example Request

cURL
curl -X DELETE https://api.example.com/api/lockers/A001 \
  -H "Content-Type: application/json"

Example Response

Success (200 OK)

{
  "lockerNo": "A001",
  "employeeNumber": "EMP12345",
  "size": 2,
  "location": "Building A - Floor 1",
  "isEmpty": false
}

Error (404 Not Found)

"Locker not found"

Build docs developers (and LLMs) love