Start of change

Delete z/OS UNIX zFS Filesystem

You can use the delete z/OS UNIX zFS Filesystem operation to delete an existing zFS filesystem. Access Method Services are used to delete the filesystem linear data set. The file system must not be allocated (attached or mounted) for this operation to succeed.

HTTP method and URI path

DELETE /zosmf/restfiles/mfs/zfs/<file-system-name>
where:
  • /zosmf/restfiles specifies the z/OS® data set and file REST interface
  • /mfs/zfs a Unix System Services filesystem request for a zFS aggregate. <file-system-name> is the filesystem (for zFS, the aggregate name) of the file system to be created. This is also the VSAM linear data set name.

Required authorizations

See Required authorizations.

Expected response

On completion, the service returns an HTTP response, which includes a status code indicating whether your request completed. Status code 200 OK indicates success. Status code 204 indicates success. A status code of 4nn or 5nn indicates that an error has occurred. For more details, see Error handling.

For errors, the HTTP response includes error information as a JSON error report document. See Error report document.

Example

Refer to Figure 1 for an example of deleting UNIX Filesystems.
Figure 1. Delete UNIX Filesystems
pfs->mfs
request:
DELETE https://zosmf1.yourco.com/zosmf/restfiles/pfs/zfs/HLQ.MYNEW.ZFS  HTTP/1.1

response:
204 No Content 

 

End of change