What's wrong with this?

Seems simple enough but something is wrong. I get an error message that the file doesn’t exist.

set theFile to “test:deleteTest.txt”
set theFile to quoted form of (POSIX path of theFile as string)
do shell script (“rm” & theFile)

I just want to delete the file without sending it to the trashcan.

Also, will rm delete the file if it is open?

Thanks.

-Alan

Hi

don’t forget the space character after rm :wink:

Yep- that was it.

Thanks Stefan.