CatalogService.DeleteGraphSnapshot
Request deletion of the exact GraphSnapshot identified by UID and resource version. ReviewDeletion reports dependencies and permissions before deletion.
CatalogService · Installed Web API. Use the HTTPS origin of your Prokrust installation and credentials authorized for this operation.
POST /prokrust.api.v1alpha1.CatalogService/DeleteGraphSnapshot
Request headers
| Header | Value and purpose |
|---|---|
Authorization | Use Bearer $PROKRUST_TOKEN for a Kubernetes caller authorized for this operation. Browser calls use the signed-in session. |
Content-Type | application/json selects ProtoJSON for this unary request. |
Connect-Protocol-Version | 1 selects version 1 of the Connect protocol. |
Request fields
| JSON field | Type | Meaning |
|---|---|---|
namespace | string | Kubernetes workspace namespace for the operation. Use the namespace in which the selected resource lives. |
name | string | Kubernetes metadata.name of the selected resource in this namespace. |
uid | string | Kubernetes metadata.uid identifying this particular object. Read it from the resource before targeting an existing instance. |
resourceVersion | string | Opaque Kubernetes resource version. Copy the value from a current read. Preserve it as a string. |
studyChildren | StudyChildDeletionRequest | TrainingStudy only. Absent preserves child TrainingRuns. |
Example request
Set PROKRUST_URL to the installation’s HTTPS origin and PROKRUST_TOKEN to your caller token. Replace the sample values with values from your installation.
curl --fail-with-body --silent --show-error \
-H "Authorization: Bearer $PROKRUST_TOKEN" \
-H 'Content-Type: application/json' \
-H 'Connect-Protocol-Version: 1' \
"$PROKRUST_URL/prokrust.api.v1alpha1.CatalogService/DeleteGraphSnapshot" \
--data-binary @- <<'JSON'
{
"namespace": "analytics",
"name": "events-graph-snapshot",
"uid": "6b0df018-5f6c-5e46-84ef-4fcb307f82b2",
"resourceVersion": "42"
}
JSON
Response fields
| JSON field | Type | Meaning |
|---|---|---|
resource | Resource | Target observed by the resource deletion handler before requesting deletion. Provider connection deletion returns only deletionRequested. |
deletionRequested | bool | True after the deletion request was accepted. Finalizers can keep the resource present during cleanup. |
Example response
{
"resource": {
"namespace": "analytics",
"name": "events-graph-snapshot",
"uid": "6b0df018-5f6c-5e46-84ef-4fcb307f82b2",
"resourceVersion": "42",
"generation": "1",
"creationTimestamp": "2026-05-12T10:00:00Z",
"spec": {
"data": {
"graphRef": {
"name": "events-graph",
"uid": "07a43e9d-0b29-5681-a27f-3eeb77e209be",
"generation": 1,
"semanticDigest": "sha256:4c4ed1afbfdaa1e4c3bf7bbb82d730cecb7e384da91eea4f3cc093fd545524d6"
},
"expectedGraphDigest": "sha256:4c4ed1afbfdaa1e4c3bf7bbb82d730cecb7e384da91eea4f3cc093fd545524d6",
"formatVersion": "prokrust.graph/v2",
"samplerVersion": "prokrust.sampler/v1",
"tableSnapshots": {
"events": {
"name": "events-snapshot",
"uid": "f5d66dad-e2ca-5db3-8ea8-7569d0eaa226",
"artifactDigest": "sha256:a24f9f019381d4c071608fa7ed700a44ea2879f0d1ae614069668671e13af510",
"dataIdentity": "sha256:8a2144119702b4ffb0b24b311c4667ce8e22cdcc420c24b8abe5b7f0d87099ad"
}
}
}
}
},
"deletionRequested": true
}
Kubernetes reference
See the GraphSnapshot reference for the resource configuration and controller observations.