drop the table, view or delete the file

def drop(self, fname):
        """ 
        drop the table, view or delete the file
        """
        if self.dataset_type == 'file':
            import os
            try:
                os.remove(fname)
            except Exception as ex:
                print('cant drop file "' + fname + '" : ' + str(ex))