Graphon API

Delete a prefix

Deletes every live object whose key starts with the prefix, as a job. A bucket that a dataset uses returns 409 bucket_in_use until Graphon retires the dataset. Get the job to follow it. Objects under retention stay, and the job result lists them. Each deleted version stays recoverable for the bucket recovery window. One empty or prefix job runs on a bucket at a time. Role: editor or higher.

POST/v1/workspaces/{workspaceId}/buckets/{bucketId}/prefix-actions

Authentication

Send your Graphon API key with every request. The value is the whole API key that Graphon showed when you created it. See Authentication.

Authorization: Bearer <GRAPHON_API_KEY>

Path parameters

The workspace id.

bucketIdstring

The bucket id.

Request body

actionstring

The action to apply. One of: delete.

prefixstring

Every live object whose key starts with this text. It is not empty: Empty a bucket deletes them all.

Was this page helpful?
View as Markdown