Delete a partitioned data set member
You can use this operation to delete a member of a PDS or PDSE.
HTTP method and URI path
DELETE /zosmf/restfiles/ds/<dataset-name>(<member-name>)
DELETE /zosmf/restfiles/ds/-(volume)/<dataset-name>(<member-name>)
where:
- /zosmf/restfiles specifies the z/OS® data set and file REST interface
- /ds indicates a data set request
- <dataset-name> is the name of a z/OS data set that contains a member you are going to delete.
- <member-name> is the name of the partitioned data set member, that you are going to delete.
- <volume> is where the data set resides, when the data set is uncatalogued.
Request Body
None.Standard headers
None.
Custom headers
None.
Query parameters
None.Content type
The content type is application/json.
Required authorizations
Usage considerations
Expected response
On completion, the service returns an HTTP response, which includes a status code indicating whether your request completed. Status code 204 indicates success. A status code of 4nn or 5nn indicates that an error has occurred. For more details, see Error handling.
If the request is successfully executed, status code 204 indicates success and no content is returned.
Example request
In the following example, the DELETE method is used to delete a member of a cataloged partitioned
data set.
DELETE zosmf/restfiles/ds/JIAHJ.REST.TEST.PDS(MEMBER01) HTTP/1.1
Example response
A sample response is shown in Delete a member of a cataloged partitioned data set.
Figure 1. Example: Delete a member of a cataloged partitioned data set
204 No Content
Content-Type: application/json; charset=UTF-8
Content-Length: 0
Date: Tue, 15 Sep 2015 10:36:14 GMT
Example request
The DELETE method is used to delete a member of an uncataloged partitioned data set.
DELETE zosmf/restfiles/ds/-(ZMF046)/JIAHJ.REST.TEST.PDS.UNCAT(MEMBER01) HTTP/1.1
Example response
A sample response is shown in Delete a member of an uncataloged partitioned data set.
Figure 2. Example: Delete a member of an uncataloged partitioned data set
204 No Content
Content-Type: application/json; charset=UTF-8
Content-Length: 0
Date: Tue, 15 Sep 2015 11:37:12 GMT