Palbase Flags · API
/flags/system/{key}Delete a flag
Deletes a flag and every user's value of it; a client syncing is told. A Palbase-managed flag is not deleted.
Called by your server, with the project's secret key.
Path
keystring · requiredThe flag's key: dot-separated segments of a letter then letters, digits and underscores; 128 characters at most.curl -X DELETE "https://<your-ref>.palbase.studio/flags/system/<key>" \
-H "apikey: $PALBASE_SECRET_KEY"Responses
204Deleted
401No key, or not a key of this project, or a token that is not valid (the edge's answer)
403Not the project's secret key
404No flag with this key, no value of the user's own for it, no such template, or no such experiment
409The project's state refuses it: publishing is on, users' values stand in the way, a managed flag's rule, a draft already exists, an experiment runs on the flag
429The project's request rate, or its flag reads for the period under its quota, are used up; Retry-After says when to try again
503The platform could not answer now; retrying is safe (Retry-After)
defaultAn error: the envelope names it (`error`) and explains it (`error_description`).
Operation DeleteDefinition of flags's contract.