SCP & Delete

Josh Carroll josh.carroll at
Tue Feb 6 20:17:17 UTC 2007

> How do I delete a file after I've copied it with SCP? Is there some sort of
> secure 'rm' command?

ssh user at host 'rm /full/path/to/file'

Should work. There's no srm (secure rm), you simply ssh to the machine
and give it the command to execute.

More information about the freebsd-questions mailing list