Delete a data document from OPA
opa_delete_dataRemove a document from OPA's data store at a specified path. Use dotted or slash-separated paths, or literal segments when keys contain dots or slashes.
Instructions
Remove a document from OPA's data store at the given path. A path is read as dotted (users.alice) unless it contains a slash, in which case slash is the only separator (users/alice), so a key such as example.com is addressable as hosts/example.com. Pass segments instead when a key contains both. OPA responds with 204 No Content on success; if no document exists at the path, OPA returns 404 which is mapped to DATA_NOT_FOUND. Root-path deletion (/v1/data/ itself) is intentionally excluded -- supply at least one path segment.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | Data path to delete, e.g. "users.alice" or "users/alice". Must be at least one segment deep. | |
| segments | No | Path as literal key segments, e.g. ["labels", "app.kubernetes.io/name"]. Use instead of `path` when a key contains a dot or a slash. |