---
title: "Soft-delete an Energy Sharing allocation record"
method: DELETE
path: "/api/energy-sharing-allocation/allocations/:id"
tags: ["Energy Sharing Allocation"]
---

# Soft-delete an Energy Sharing allocation record

`DELETE /api/energy-sharing-allocation/allocations/:id`

## Request

- Base URL: `https://api.cernion.de`
- URL: `https://api.cernion.de/api/energy-sharing-allocation/allocations/:id`
- Auth: none declared

Marks the allocation record as deleted (_deleted: true) without removing it from PouchDB. The record remains accessible for audit purposes via GET /allocations/:id?includeDeleted=true. EU AI Act Art. 12 compliance: deletion is non-destructive.

## Path parameters

- `id` string, required

## Query parameters

- `token` string

## Request body

- object
  - `token` string: Optional Cernion MCP token for this request. Overrides CERNION_TOKEN when provided.

## Response `200`

Soft-delete confirmed

## Other responses

- `404`: Allocation not found

---

[API](https://skmtc.dev/cernion/apis/cernion-energy-tools-api.md) · [All operations](https://skmtc.dev/cernion/apis/cernion-energy-tools-api/llms.txt) · [OpenAPI document](https://skmtc.dev/cernion/apis/cernion-energy-tools-api/revisions/cdb94473b538?raw)
