Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 2 of 2
  1. #1
    Registered User
    Join Date
    Oct 2008
    Posts
    3

    Default Won't Delete

    I have two files that just won't delete! I need them deleted because I have a new file, but it won't override it!

    Thanks,
    Ruben

  2. #2
    Member rhenderson's Avatar
    Join Date
    Apr 2005
    Location
    Oklahoma
    Posts
    742

    Default

    Not much info to go on here, you using linux? Do you have shell access? Does the file have an unusual name, spaces or characters?

    It might have bad permissions, you can change them to something like 0640 and try to delete them, i.e. chmod 0644 filename.ext or the wrong owner chown user:user filename or if they have some funky names you can delete them by the inode number, see my example:

    Code:
    # ls -il
    total 8
    118265373  root root 4096 Oct 26 17:37 ./
     88671744  root root 4096 Oct 26 17:37 ../
    118265376 root root    0 Oct 26 17:37 deletemeplease
    
    # find . -inum 118265376 -exec rm -i {} \;
    rm: remove regular empty file `./deletemeplease'? y
    
    # ls -il
    
    total 8
    118265373  root root 4096 Oct 26 17:38 ./
     88671744  root root 4096 Oct 26 17:37 ../
    #
    In the above example using shell I ran ls -il to get the inode numbers on the far left, the file I wanted to delete was deletemeplease which inode number was 118265376 then removed it with the above command.

    i.e.

    find . -inum [inode number here] -exec rm -i {} \;

    That is the best I can do without more info.
    Regards,
    Randy
    Affordable Web Hosting
    _________________________

Similar Threads & Tags
Similar threads

  1. Replies: 5
    Last Post: 10-07-2011, 11:29 AM
  2. Database won't delete. DB Name is same as username.
    By Gabbadude in forum cPanel and WHM Discussions
    Replies: 9
    Last Post: 05-05-2008, 01:44 AM
  3. Horde won't delete emails
    By jsteel in forum cPanel and WHM Discussions
    Replies: 12
    Last Post: 09-19-2006, 07:48 AM
  4. e-mail filters won't delete
    By Fillos in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 10-30-2003, 10:07 PM
  5. add-on won't delete, cpanel says I don't have the permision???
    By DWHS.net in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 04-21-2003, 02:00 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube