# Delete certifications for a year `DELETE /api/v1/invoices/year/{year}` Removes certifications for one fiscal year across both payment directions. ## Permissions Send your API key in `X-API-Key`. Required permissions are **Invoices → Write**. ## Path parameters - `year` (integer, required) — Four-digit fiscal year, from 1970 through 9999. ## Request Set ASDINCLOUD_API_KEY and any variables named in the example before running it. ```sh curl --request DELETE \ --url "https://api.asdincloud.com/api/v1/invoices/year/${YEAR:?Set YEAR}" \ --header "X-API-Key: $ASDINCLOUD_API_KEY" ``` ## Response **200 OK** Returns a confirmation. The numeric `deleted` field indicates whether the delete operation succeeded. Example with fictional data and selected fields. ```json { "status": "success", "message": { "message_key": "entities.invoice.messages.deleted_year" }, "deleted": 1 } ``` ## Errors - `401` — The API key is missing or invalid. - `403` — The API key lacks the required permission. - `400` — The fiscal year or payment type is invalid.