/v1/workspaces/{workspace_id}/configs/{config_id}AuthDelete a config
Deletes the config with its flags, values and SDK keys in every environment. Needs `flags.project.manage`.
Path parameters
config_id*string · uuidId of the config.
workspace_id*string · uuidId of the workspace.
Query parameters
notestringA change note (at most 500 characters), saved on the history entry. Environments with `require_note` refuse value writes without one.
Response · 204
Deleted.
Example
Request
DELETE https://api.flags.productcraft.co/v1/workspaces/{workspace_id}/configs/{config_id}
Authorization: Bearer YOUR_TOKENimport { Flags } from "@productcraft/flags";
// Reads PRODUCTCRAFT_API_KEY from the environment
const flags = new Flags();
await flags.configs.delete("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f");flags.configs.delete(configId, params?, options?): void