---
title: "Delete branch metadata"
method: DELETE
path: "/v2/storage/branch/{branchId}/metadata/{metadataId}"
tags: ["Metadata"]
---

# Delete branch metadata

`DELETE /v2/storage/branch/{branchId}/metadata/{metadataId}`

## Request

- Base URL: `https://connection.keboola.com`
- URL: `https://connection.keboola.com/v2/storage/branch/{branchId}/metadata/{metadataId}`
- Auth: one of:
  - API key in header `X-StorageApi-Token`
  - API key in header `X-KBC-ManageApiToken`
  - HTTP bearer
- TypeScript: <https://skmtc.dev/keboola/apis/keboola-storage-api/docs/v2/storage/branch/:branchId/metadata/:metadataId/delete.ts> (a function with typed inputs; its response is checked against the schema)

Deletes the specified metadata item from the development branch.

All requests must include the branch (`/branch/{branchId}`) in the URL. This is also true for default (production) branch.
You can find out the id of your default branch by calling [List Branches](#tag/Development-Branches) and finding branch with attribute `isDefault` set to `true`.
Or you can use placeholder `default` to use with project's default branch.

## Path parameters

- `branchId` string, required
- `metadataId` integer, required

## Response `204`

Metadata item deleted.

## Other responses

- `403`: Returned when the metadata key is reserved for internal use (`storage.branches.metadata.reservedKey`).
- `404`: Returned when the metadata item is not found (`storage.branches.metadata.notFound`).

---

[API](https://skmtc.dev/keboola/apis/keboola-storage-api.md) - [All operations](https://skmtc.dev/keboola/apis/keboola-storage-api/llms.txt) - [OpenAPI document](https://skmtc.dev/keboola/apis/keboola-storage-api/revisions/34b5ceac0317?raw)
