Skip to content

Delete a project

DELETE
/api/v2/organizations/{organization}/projects/{project}
curl --request DELETE \
--url https://dashboard.quantcdn.io/api/v2/organizations/test-org/projects/test-project \
--header 'Authorization: Bearer <token>'
organization
required
string

Organization identifier

Example
test-org
project
required
string

Project identifier

Example
test-project

The request has succeeded.

The server could not understand the request due to invalid syntax.

Media typeapplication/json
object
message
required

Error message

string
error
required

Error flag

boolean
Example
{
"message": "The requested resource was not found",
"error": true
}

Access is forbidden.

Media typeapplication/json
object
message
required

Error message

string
error
required

Error flag

boolean
Example
{
"message": "The requested resource was not found",
"error": true
}

KV_LEDGER_PRESENT: a KV store of the project has a ledger, and a ledger cannot be deleted before its retention ends. Nothing is deleted. The body lists the store IDs in stores. Otherwise every KV store of the project is deleted with the project, and a store linked from another project is only unlinked.

Media typeapplication/json
object
error
boolean
message
string
code
string
Allowed values: KV_LEDGER_PRESENT
retryable
boolean
stores
Array<string>
Example
{
"error": true,
"code": "KV_LEDGER_PRESENT",
"retryable": false
}

KV_STORES_UNREADABLE: the KV stores or their ledgers could not be read, so nothing is deleted. KV_STORE_DELETE_FAILED: a KV store could not be deleted, so the project is kept (the message names the stores already deleted). Both are retryable.

Media typeapplication/json
object
error
boolean
message
string
code
string
Allowed values: KV_STORES_UNREADABLE KV_STORE_DELETE_FAILED
retryable
boolean
stores
Array<string>
Example
{
"error": true,
"code": "KV_STORES_UNREADABLE",
"retryable": true
}