---
title: "Delete operation"
method: DELETE
path: "/operations/{companyId}/{customId}"
tags: ["Operations"]
---

# Delete operation

`DELETE /operations/{companyId}/{customId}`

Cancels an operation by `customId`: its `status` is set to `cancel` and its pending amounts to 0. Only operations whose current status is not `paid`, `cancel` or `payment_in_progress` can be deleted.

## Path parameters

- `customId` string, required
- `companyId` string, required

## Response `200`

Successful Response

- ModifyOperationsResponseSchema
  - `id` string, required — Embat resource ID

## Other responses

- `401` — Unauthorized. The bearer token is missing, invalid or expired.
- `404` — Company not found, no operation matches the given `customId`, or the operation's status is `paid`, `cancel` or `payment_in_progress`.
- `422` — Validation Error
- `500` — Unexpected error. Contact support if it persists.

---

[API](https://skmtc.net/embat/apis/embat-api.md) · [All operations](https://skmtc.net/embat/apis/embat-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/embat/embat-api/revisions/36ca48bf4489/schema)
