docs: def delete(self):
          """Delete this file"""
          if not self.remote:
              if not os.path.exists(self.projectpath + self.basedir + '/' + self.filename):
                  return False
              else:
                  os.unlink(self.projectpath + self.basedir + '/' + self.filename)
  
              #Remove metadata
              metafile = self.projectpath + self.basedir + '/' + self.metafilename()
              if os.path.exists(metafile):
                  os.unlink(metafile)
  
              #also remove any .*.INPUTTEMPLATE.* links that pointed to this file: simply remove all dead links
              for linkf,realf in clam.common.util.globsymlinks(self.projectpath + self.basedir + '/.*.INPUTTEMPLATE.*'):
                  if not os.path.exists(realf):
                      os.unlink(linkf)
  
              return True
          else:
              if self.client:
                  requestparams = self.client.initrequest()
              else:
                  requestparams = {}
              requests.delete( self.projectpath + self.basedir + '/' + self.filename, **requestparams)
              return True