Class UssDelete


  • public class UssDelete
    extends Object
    Provides Unix System Services (USS) delete object functionality

    z/OSMF REST API

    Version:
    4.0
    Author:
    James Kostrewski
    • Constructor Detail

      • UssDelete

        public UssDelete​(ZosConnection connection)
        UssDelete Constructor
        Parameters:
        connection - for connection information, see ZosConnection object
    • Method Detail

      • delete

        public Response delete​(String targetPath)
                        throws ZosmfRequestException
        Perform UNIX delete file or directory name request
        Parameters:
        targetPath - the name of the file or directory you are going to delete
        Returns:
        Response object
        Throws:
        ZosmfRequestException - request error state
      • delete

        public Response delete​(String targetPath,
                               boolean recursive)
                        throws ZosmfRequestException
        Perform UNIX delete file or directory name request with a recursive flag
        Parameters:
        targetPath - the name of the file or directory you are going to delete
        recursive - flag indicates if contents of directory should also be deleted
        Returns:
        Response object
        Throws:
        ZosmfRequestException - request error state