Delete a kv store
DELETE
/api/v2/organizations/{organization}/projects/{project}/kv/{store_id}
const url = 'https://dashboard.quantcdn.io/api/v2/organizations/test-org/projects/test-project/kv/0000?force=false';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/kv/0000?force=false' \ --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-projectstore_id
required
string
Example
0000Query Parameters
Section titled “Query Parameters”force
boolean
Delete the store even if it still holds keys. Without it a non-empty store returns 409.
Responses
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}The store is not empty. Clear its keys in the dashboard or pass force=true.
Media typeapplication/json
object
error
boolean
message
string
hint
string
Example
{ "error": true, "message": "KV store is not empty", "hint": "Purge its keys first, or pass force=true to delete it with its data"}