Class DsnDelete


  • public class DsnDelete
    extends Object
    Provides delete dataset and member functionality
    Version:
    2.0
    Author:
    Leonid Baranov, Frank Giordano
    • Constructor Detail

      • DsnDelete

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

        public DsnDelete​(ZosConnection connection,
                         ZoweRequest request)
                  throws Exception
        Alternative DsnDelete 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
        Throws:
        Exception - processing error
    • Method Detail

      • delete

        public Response delete​(String dataSetName,
                               String memberName)
                        throws Exception
        Delete a dataset member
        Parameters:
        dataSetName - name of a dataset (e.g. 'DATASET.LIB')
        memberName - name of member to delete
        Returns:
        http response object
        Throws:
        Exception - error processing request
      • delete

        public Response delete​(String dataSetName)
                        throws Exception
        Delete a dataset
        Parameters:
        dataSetName - name of a dataset (e.g. 'DATASET.LIB')
        Returns:
        http response object
        Throws:
        Exception - error processing request