<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 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))