If you're using WinSCP to manipulate files on an iPhone, you need to make sure you have rm in your /bin folder. Right click on the rm file, select Preferences, then change the octal number from 0644 to 0777. Then click ok.
If you don't have rm, see this site, <invalid hyperlink removed by admin>
and look for Step 17 for a link to a collection of Unix bin files that you can install on the iPhone (including rm).
If you don't have rm, see this site, <invalid hyperlink removed by admin>
and look for Step 17 for a link to a collection of Unix bin files that you can install on the iPhone (including rm).