def movetotrash(path):
 fss = Carbon.File.FSSpec(path)
 trashfolder = Carbon.Folder.FSFindFolder(fss.as_tuple()[0], 'trsh', 0)
 move(path, trashfolder)

def movetotrash ( path ) : fss = Carbon . File . FSSpec ( path ) trashfolder = Carbon . Folder . FSFindFolder ( fss . as_tuple ( ) [ 0 ] , 'trsh' , 0 ) move ( path , trashfolder )
move the object to the trash .