Connect the N900 to your desktop machine in mass storage mode and then try to delete the folders. I don't know your OS, but you probably have to go into the folder properties at first and disable "read only". This might be the easiest way without using xterm.