示例#1
0
    def delete(self):
        delete = Delete()

        if self.args['sample'] is not None:
            delete.delete_sample(self.args['sample'])

        elif self.args['collection'] is not None:
            delete.delete_collection(self.args['collection'])

        else:
            print "See please --help to specify something to delete."
示例#2
0
    def delete(self):
        """
        This is what is carried out when the delete option is chosen.

        :return:
        """
        delete = Delete()

        # This deletes a specific sample
        if self.args['sample'] is not None:
            delete.delete_sample(self.args['sample'])

        # This deletes a specific collection
        elif self.args['collection'] is not None:
            delete.delete_collection(self.args['collection'])

        else:
            print "See please --help to specify something to delete."