Delete a KV value
const url = 'https://api.deploybase.eu/api/v1/api/v1/projects/example/kv/value?env=example&key=example';const options = {method: 'DELETE', headers: {Authorization: '<Authorization>'}};
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://api.deploybase.eu/api/v1/api/v1/projects/example/kv/value?env=example&key=example' \ --header 'Authorization: <Authorization>'Deletes one key; a missing key is success. only_if_version deletes only at that version (412 otherwise). Needs member.
Authorizations
Section titled “ Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “ Path Parameters ”Project ID
Query Parameters
Section titled “ Query Parameters ”Production or preview
Store name (default: default)
Key
Delete only at this version
A UUID naming this user action
Responses
Section titled “ Responses ”No Content
Bad Request
object
object
object
The structured outcome (ADR-030, DEP-965). Optional and additive: only the operations endpoints fill them so far, and a client that does not know them reads the rest as before.
KV_NOT_ENABLED, or FORBIDDEN below member
object
object
object
The structured outcome (ADR-030, DEP-965). Optional and additive: only the operations endpoints fill them so far, and a client that does not know them reads the rest as before.
Not Found
object
object
object
The structured outcome (ADR-030, DEP-965). Optional and additive: only the operations endpoints fill them so far, and a client that does not know them reads the rest as before.
KV_VERSION_MISMATCH
object
object
object
The structured outcome (ADR-030, DEP-965). Optional and additive: only the operations endpoints fill them so far, and a client that does not know them reads the rest as before.
KV_UNAVAILABLE
object
object
object
The structured outcome (ADR-030, DEP-965). Optional and additive: only the operations endpoints fill them so far, and a client that does not know them reads the rest as before.
Live 582ac705 built