Delete an existing context field
DELETE <your-unleash-url>/api/admin/context/:contextField
Authorization
name: Authorizationtype: apiKeyin: headerdescription: API key needed to access this API
Endpoint that allows deletion of a custom context field. Does not validate that context field is not in use, but since context field configuration is stored in a json blob for the strategy, existing strategies are safe.
Request
Path Parameters
- contextField string required
Responses
- 200
This response has no body.
Authorization
name: Authorizationtype: apiKeyin: headerdescription: API key needed to access this API
Request
Request
curl / cURL
curl -L -X DELETE '<your-unleash-url>/api/admin/context/:contextField' \
-H 'Authorization: <API_KEY_VALUE>'
python / requests
curl -L -X DELETE '<your-unleash-url>/api/admin/context/:contextField' \
-H 'Authorization: <API_KEY_VALUE>'
go / native
curl -L -X DELETE '<your-unleash-url>/api/admin/context/:contextField' \
-H 'Authorization: <API_KEY_VALUE>'
nodejs / native
curl -L -X DELETE '<your-unleash-url>/api/admin/context/:contextField' \
-H 'Authorization: <API_KEY_VALUE>'
ruby / Net::HTTP
curl -L -X DELETE '<your-unleash-url>/api/admin/context/:contextField' \
-H 'Authorization: <API_KEY_VALUE>'
csharp / httpclient
curl -L -X DELETE '<your-unleash-url>/api/admin/context/:contextField' \
-H 'Authorization: <API_KEY_VALUE>'
php / cURL
curl -L -X DELETE '<your-unleash-url>/api/admin/context/:contextField' \
-H 'Authorization: <API_KEY_VALUE>'
java / OkHttp
curl -L -X DELETE '<your-unleash-url>/api/admin/context/:contextField' \
-H 'Authorization: <API_KEY_VALUE>'
powershell / RestMethod
curl -L -X DELETE '<your-unleash-url>/api/admin/context/:contextField' \
-H 'Authorization: <API_KEY_VALUE>'