labpack/storage/appdata.py
def remove(self):

        ''' 
            a method to remove collection and all records in the collection

        :return: string with confirmation of deletion
        '''

        _title = '%s.remove' % self.__class__.__name__

    # TODO  error handling is turned off to avoid system blocking
    #       fix potential to create artifacts in the system

    # remove collection tree
        try:
            import shutil
            shutil.rmtree(self.collection_folder, ignore_errors=True)
        except:
            raise Exception('%s failed to remove %s collection from app data.' % (_title, self.collection_folder))

        exit_msg = '%s collection has been removed from app data.' % self.collection_folder
        return exit_msg
 
            a method to remove collection and all records in the collection

        :return: string with confirmation of deletion
        
a method to remove collection and all records in the collection
a method to remove collection and all records in the collection
def remove(self):
        _title = '%s.remove' % self.__class__.__name__
        try:
            import shutil
            shutil.rmtree(self.collection_folder, ignore_errors=True)
        except:
            raise Exception('%s failed to remove %s collection from app data.' % (_title, self.collection_folder))
        exit_msg = '%s collection has been removed from app data.' % self.collection_folder
        return exit_msg
def remove ( self ) : _title = '%s.remove' % self . __class__ . __name__ try : import shutil shutil . rmtree ( self . collection_folder , ignore_errors = True ) except : raise Exception ( '%s failed to remove %s collection from app data.' % ( _title , self . collection_folder ) ) exit_msg = '%s collection has been removed from app data.' % self . collection_folder return exit_msg
a method to remove collection and all records in the collection
a method to remove collection and all records in the collection
''' 
            a method to remove collection and all records in the collection

        :return: string with confirmation of deletion
        ''' # TODO  error handling is turned off to avoid system blocking
 #       fix potential to create artifacts in the system
 # remove collection tree

string with confirmation of deletion
string with confirmation of deletion
self