Delete system variables
Use this operation to delete z/OSMF system variables from the system variable pool.
HTTP method and URI path
DELETE /zosmf/variables/rest/<version>/systems/<sysplex-name>.<system-name>
- <version> identifies the version of the z/OSMF system variables service. The following value is valid: 1.0.
- <sysplex-name> identifies the sysplex.
- <system-name> identifies the system.
Description
This operation removes system variables from the system variable pool.
If all variables are removed, the system variable pool is empty. If there is no request body, this operation deletes the system variable pool. If the request body contains an empty array ([ ]), no action is taken. If the request body contains no variables in the array, no action is taken. If the request body contains variables that does not exist in the pool, those variables are ignored.
On successful completion, HTTP status code 204 (No content) is returned.
Authorization requirements
Request content
The request content is expected to contain an array of strings. Each string represents the name of a system variable to delete.
HTTP status codes
On successful completion, HTTP status code 204 (No content) is returned.
If the system variable pool does not exist for the requested system, HTTP status code 204 is returned.
Otherwise, the following HTTP status codes are returned for the indicated errors.
HTTP error status code | Description |
---|---|
400 | Request body is not formatted correctly |
401 | Submitter of the request is not authorized to delete the system variables |
404 | Requested system was not found |
500 | A server error occurred during processing of the request. |
Response content
None.
Example HTTP interaction
DELETE /zosmf/variables/rest/1.0/variables/systems/<sysplex-name>.<system-name>
["var1","var2",...]