/usr/bin/rm /tmp/foo
:
Here's the source.
Applets can't delete files if they're loaded into Netscape Navigator 2.0, and applets loaded over the net can't delete files if they're loaded into the appletviewer. Applets loaded on your local file system in a directory on your CLASSPATH can delete files on your local disk.