Class UssDelete


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

    z/OSMF REST API

    Version:
    3.0
    Author:
    James Kostrewski
    • Constructor Detail

      • UssDelete

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

        public UssDelete​(ZosConnection connection,
                         ZosmfRequest request)
        Alternative UssDelete constructor with ZoweRequest object. This is mainly used for internal code unit testing with mockito, and it is not recommended to be used by the larger community.
        Parameters:
        connection - connection information, see ZosConnection object
        request - any compatible ZoweRequest Interface 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 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