Delete Baremetal Server Custom Variable

To delete a baremetal server custom variable, use the following request:

DELETE /baremetal_servers/:baremetal_server_id/custom_recipe_variables/:custom_recipe_variable_id.xml
DELETE /baremetal_servers/:baremetal_server_id/custom_recipe_variables/:custom_recipe_variable_id.json

XML Request Example

curl -i -X DELETE -H 'Accept: application/xml' -H 'Content-type: application/xml' -u user:userpass --url http://onapp.test/baremetal_servers/4/custom_recipe_variables/20.xml

JSON Request Example

curl -i -X DELETE -H 'Accept: application/json' -H 'Content-type: application/json' -u user:userpass --url http://onapp.test/baremetal_servers/4/custom_recipe_variables/20.json 

Returns HTTP 204 response on successful deletion, or HTTP 404 when a variable with the ID specified is not found.