---
title: "Remove custom metadata"
method: DELETE
path: "/rest/api/index/document/{docId}/custom-metadata/{groupName}"
tags: ["Custom Metadata"]
---

# Remove custom metadata

`DELETE /rest/api/index/document/{docId}/custom-metadata/{groupName}`

Removes all custom metadata for the specified metadata group from a document.

## Response `200`

OK

- SuccessResponse — Success response for custom metadata operations
  - `success` boolean — Indicates if the operation was successful

## Other responses

- `400` — Bad Request
- `401` — Not Authorized
- `404` — Not Found
- `429` — Too Many Requests
- `500` — Internal Server Error

---

[API](https://skmtc.net/gleanwork/apis/glean-api-2.md) · [All operations](https://skmtc.net/gleanwork/apis/glean-api-2/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/gleanwork/glean-api-2/versions/c4ae998a3802/schema)
