Deleting files

Use the unlink() or remove() z/OS® XL C/C++ function to delete the following types of z/OS UNIX file system files:
  • Regular
  • Character special
  • FIFO
  • Link files

Use the rmdir() z/OS XL C/C++ function to delete a z/OS UNIX file system directory file. See z/OS XL C/C++ Runtime Library Reference for more information about these functions.