I have an image on one of my hosting packages which is called ALLI\'S FILM0006.jpg When I go to delete it, it ignores the command and the image remains. Does anyone know how I would delete the image? Thanks
I would suggest either going into FTP and selecting DELETE on that file or logging in to SSH and using the 'rm' command to remove the file. If neither of those work, I suggest contacting your provider to help figure it out and see if there is a permission problem or what is going on.
In addition to what fsmedia mentioned, I'm not sure what program you are trying to delete the file with but you might try renaming the file first, and then deleting it. It is a long-shot, but with the apostrophe in the filename that could cause problems with some systems trying to delete the file.
You're probably not the owner of the image when you use ftp - but if you have cpanel you should be able to override that and delete it from there.
I'll try a different FTP program. I'm using Flash FXP to try and rename or delete it but so far neither work. What FTP programs do you guys use?
It's nothing to do with the ftp program that you are using. I use smart ftp and when I view a file I can see the user and the group. Now, I'd put money down that the owner of that rogue file is not the same as the username that you use in your ftp program...
Did you try pressing F5 to refresh after you delete. I am using FLASHFXP as well and it works great. I had a problem close to that with folders as they wouldnt delete and my host actually fixed it after I got fed up and asked them whats the problem.
Happened to me several times, files that for some unknown reason can't be deleted , and you can;t even chmod them... I am almost sure that any FTP program won't do it... neither will cpanel, you'll have to use SHH
i remember having a .htaccess file like that once, it wouldnt delet oand couldnt be overwritten, i told my host and if i remember rightly they sorted it. (cant remember how tho - sorry)
Thanks Sarah and INV. I tried F5 and it didn't work. I'm basically removing an account from webhost manager but I'm going through everything making sure there's nothing I want so I'll probably just end up removing everything anyway but the rogue image was just bugging me! Thanks for all the help.
You might get the creeps at this suggestion, but I've found that many times, if you ftp with your IE browser, using your traditional ftp login, you can remove the file this way. Not always, but it has been known to work. If you have ssh access try rm -f (the f is for force) ALLI\'S FILM0006.jpg If that doesn't work try rm -f ALLI\ or rm -f ALLI\' If you have backups of your jpgs, go into the directory where the jpgs (and this file lives) and do a rm -f * .jpg, removing all jpgs. Then reupload the jpg files.
You'll get the creeps at hearing this... but I wouldn't know how to FTP to my site using the IE Browser lol. I'm 99% sure I dont have SSH access. I remember having such access at uni but I've never used it with web servers outside uni.
In IE, type in ftp://domainname.com If it's configured in IE options, you should get a password box, put in the userand pass for that account. Optionally; you can try (I'm doing this from memory, so it may or may not be correct - it's one ugly url): ftp://userid:password@domainname.com replacing your userid and password with your userid and password
lol @ INV Thanks Flaweb, I gave it a try but it's not working because I've already moved the domain to a new host and the IP address doesnt give me anything. I'm going to try removing the account now and hopefully it just deletes everything.
I still think the issue is the \ and the ' these are often special characters and have to be escaped.