z/OS Network File System Guide and Reference
Previous topic | Next topic | Contents | Contact z/OS | Library | PDF


Removing a PDS or PDSE - rm, rmdir

z/OS Network File System Guide and Reference
SC23-6883-00

To remove a PDS or PDSE, first make sure that the PDS or PDSE is empty. You can delete all members under the directory using the rm UNIX command. Then use the rmdir (remove directory) UNIX command. This example removes the datalib directory, and confirms its removal by a failed try to query it (ls is the UNIX list files command).
$ ls -F /u/smith/mnt/datalib
data1* data2* data3*
$ rm /u/smith/mnt/datalib/*
$ rmdir /u/smith/mnt/datalib
$ ls -F /u/smith/mnt/datalib
/u/smith/mnt/datalib not found  

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014