> ## Documentation Index
> Fetch the complete documentation index at: https://code.dcycle.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Delete Logistics Recharge

> Delete a single logistics recharge (fuel consumption) from your organization

# Delete Logistics Recharge

Permanently delete a logistics recharge (fuel consumption record) from your organization. This action cannot be undone.

<Warning>
  **Permanent Action**: Deleting a logistics recharge is permanent and cannot be undone. The associated emissions data will also be removed from your organization's totals.
</Warning>

## Request

### Headers

<ParamField header="x-api-key" type="string" required>
  Your API key for authentication

  **Example:** `sk_live_1234567890abcdef`
</ParamField>

<ParamField header="x-organization-id" type="string" required>
  Your organization UUID

  **Example:** `a8315ef3-dd50-43f8-b7ce-d839e68d51fa`
</ParamField>

### Path Parameters

<ParamField path="recharge_id" type="string" required>
  The unique identifier (UUID) of the logistics recharge to delete

  **Example:** `550e8400-e29b-41d4-a716-446655440000`
</ParamField>

## Response

Returns `204 No Content` on successful deletion.

## Example

<CodeGroup>
  ```bash cURL theme={"theme":{"light":"github-light","dark":"github-dark"}}
  curl -X DELETE "https://api.dcycle.io/v1/logistics/recharges/550e8400-e29b-41d4-a716-446655440000" \
    -H "x-api-key: ${DCYCLE_API_KEY}" \
    -H "x-organization-id: ${DCYCLE_ORG_ID}"
  ```

  ```python Python theme={"theme":{"light":"github-light","dark":"github-dark"}}
  import requests
  import os

  api_key = os.getenv("DCYCLE_API_KEY")
  org_id = os.getenv("DCYCLE_ORG_ID")
  recharge_id = "550e8400-e29b-41d4-a716-446655440000"

  headers = {
      "x-api-key": api_key,
      "x-organization-id": org_id
  }

  response = requests.delete(
      f"https://api.dcycle.io/v1/logistics/recharges/{recharge_id}",
      headers=headers
  )

  if response.status_code == 204:
      print("Logistics recharge deleted successfully")
  else:
      print(f"Error: {response.json()}")
  ```

  ```javascript JavaScript theme={"theme":{"light":"github-light","dark":"github-dark"}}
  const axios = require('axios');

  const apiKey = process.env.DCYCLE_API_KEY;
  const orgId = process.env.DCYCLE_ORG_ID;
  const rechargeId = '550e8400-e29b-41d4-a716-446655440000';

  const headers = {
    'x-api-key': apiKey,
    'x-organization-id': orgId
  };

  axios.delete(
    `https://api.dcycle.io/v1/logistics/recharges/${rechargeId}`,
    { headers }
  )
  .then(response => {
    if (response.status === 204) {
      console.log('Logistics recharge deleted successfully');
    }
  })
  .catch(error => console.error(error));
  ```
</CodeGroup>

### Successful Response

```
HTTP/1.1 204 No Content
```

No response body is returned on successful deletion.

## Common Errors

### 401 Unauthorized

**Cause:** Missing or invalid API key

```json theme={"theme":{"light":"github-light","dark":"github-dark"}}
{
  "detail": "Invalid API key",
  "code": "INVALID_API_KEY"
}
```

### 404 Not Found

**Cause:** Logistics recharge not found or doesn't belong to your organization

```json theme={"theme":{"light":"github-light","dark":"github-dark"}}
{
  "code": "NOT_FOUND",
  "detail": "Logistics recharge not found"
}
```

**Solution:** Verify that:

1. The recharge ID is correct
2. The recharge belongs to the organization specified in `x-organization-id`
3. The record hasn't already been deleted

## Related Endpoints

<CardGroup cols={2}>
  <Card title="Batch Delete Recharges" icon="trash-can" href="/api-reference/logistics/batch-delete-recharges">
    Delete multiple recharges at once
  </Card>

  <Card title="Get Logistics Recharges" icon="gas-pump" href="/api-reference/logistics/get-recharges">
    Retrieve fuel consumption records
  </Card>

  <Card title="Delete Single Request" icon="trash" href="/api-reference/logistics/delete-request">
    Delete a shipment request
  </Card>
</CardGroup>
