DELETE
/
fixed-assets
/
{fixed_asset_id}
Delete Fixed Asset
curl --request DELETE \
  --url https://api.clemta.com/fixed-assets/{fixed_asset_id} \
  --header 'X-API-Key: <api-key>'
{
  "success": true,
  "message": "Fixed asset deleted successfully",
  "data": {}
}

Delete Fixed Asset

This endpoint allows you to delete a fixed asset from the system.

Headers

ParameterTypeDescription
X-API-KEYstringFormation API Key (required)

Path Parameters

ParameterTypeDescription
fixed_asset_idstringFixed Asset ID (required)

Parameter Examples

  • Fixed Asset ID: 64b8f1a2e4b0c8d9f0123456

Response

{
  "success": true,
  "message": "Fixed asset deleted successfully",
  "data": null
}

Response Parameters

ParameterTypeDescription
successbooleanIndicates if the operation was successful
messagestringAdditional information about the operation
datanullNo data returned for delete operation

Error Responses

Invalid Request (400)

{
  "success": false,
  "message": "Invalid request data",
  "error": {
    "code": "INVALID_REQUEST",
    "details": "Invalid fixed asset ID format"
  }
}

Unauthorized (401)

{
  "success": false,
  "message": "API key is required",
  "error": {
    "code": "API_KEY_REQUIRED"
  }
}

Fixed Asset Not Found (404)

{
  "success": false,
  "message": "Fixed asset not found",
  "error": {
    "code": "FIXED_ASSET_NOT_FOUND"
  }
}

Internal Server Error (500)

{
  "success": false,
  "message": "Internal server error",
  "error": {
    "code": "INTERNAL_ERROR"
  }
}

Notes

  • Once a fixed asset is deleted, it cannot be recovered
  • The fixed asset ID must be a valid ObjectID format
  • Deletion is permanent and will remove all associated data
  • No data is returned in the response for successful delete operations

Authorizations

X-API-Key
string
header
required

Formation API key for authentication.

Path Parameters

fixed_asset_id
string
required

Fixed Asset ID

Response

200
application/json

Fixed asset deleted successfully

The response is of type object.