Delete a project
DELETE
/api/v2/organizations/{organization}/projects/{project}
const url = 'https://dashboard.quantcdn.io/api/v2/organizations/test-org/projects/test-project';const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request DELETE \ --url https://dashboard.quantcdn.io/api/v2/organizations/test-org/projects/test-project \ --header 'Authorization: Bearer <token>'Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”organization
required
string
Organization identifier
Example
test-orgproject
required
string
Project identifier
Example
test-projectResponses
Section titled “Responses”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
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
retryable
boolean
stores
Array<string>
Example
{ "error": true, "code": "KV_STORES_UNREADABLE", "retryable": true}