def empty_trash():
 text = '[tl] Empty the trash'
 if ((_platform == 'linux') or (_platform == 'linux2')):
  print ('linux: %s' % text)
  os.system('rm -rf ~/.local/share/Trash/*')
 elif (_platform == 'darwin'):
  print ('OS X: %s' % text)
  os.system('sudo rm -rf ~/.Trash/*')
 elif (_platform == 'win32'):
  print ('Windows: %s' % text)
  try:
   os.system('rd /s c:\\$Recycle.Bin')
  except:
   pass
  try:
   os.system('rd /s c:\recycler')
  except:
   pass
 else:
  print _platform

def empty_trash ( ) : text = '[tl] Empty the trash' if ( ( _platform == 'linux' ) or ( _platform == 'linux2' ) ) : print ( 'linux: %s' % text ) os . system ( 'rm -rf ~/.local/share/Trash/*' ) elif ( _platform == 'darwin' ) : print ( 'OS X: %s' % text ) os . system ( 'sudo rm -rf ~/.Trash/*' ) elif ( _platform == 'win32' ) : print ( 'Windows: %s' % text ) try : os . system ( 'rd /s c:\\$Recycle.Bin' ) except : pass try : os . system ( 'rd /s c:\recycler' ) except : pass else : print _platform
empty trash folder .