Skip to content

Delete record

DELETE /v4/storage/{storage}/key?key={key}

Delete a single record. The path parameter storage specifies the namespace name, and the query parameter key specifies the record key to delete.

Response schema

FieldTypeDescription
txinteger<int64>Transaction ID of the delete operation.
durationstringTime taken to process the request, returned in a human-readable format (e.g., "1.234567ms").

Example

sh
curl --location --request DELETE 'https://api.litebase.io/v4/storage/sample/key?key=city:1' \
--header "Authorization: Bearer $LITEBASE_API_KEY"

Response:

json
HTTP/1.1 200 OK
Content-Type: application/json

{
    "tx": 3,
    "duration": "1.234567ms"
}