505 Delete Failed

Posted on 2006-03-27
Last Modified: 2013-12-24

I am in the process of uploading a new website and I have hit a problem.

I'm using WS_FTP to upload the site to my server.  I was trying to create a password protected page and uploaded an .htaccess file and .htpasswd file along with the rest of my files.  When doing this I created a new folder for the page I wanted password protected (I'm trying to figure out how to do this) and put those files there.  Unfortunately, now the site won't work, so I want to delete those files.  I tried deleting everything from the folder and then deleting the folder but when I go to delete the folder I get a 550 Delete: File Exists error.  As I look in the folder, there is nothing there, but interestingly enough, when I deleted the contents of the folder I did not see the .htaccess and .htpasswd files.   It is showing that the size of the folder is 4096 so I figure there must be something in it (which would be why I can't delete it) but I don't see anything there.  Please let me know if you need more information to help with my problem, just ask away!  I apologize in advance if I didn't explain it properly but I am a novice at this.

Thanks in advance!

Question by:garden_frog
    LVL 15

    Expert Comment

    You may have hidden files in that folder and your operating system is not configured to show them. There are two ways you can attack this.

    #1 open mycomputer, go to tools, folder options at the top of the window, then click the view tab and tell explorer to show you hidden files and folder

    #2 open a command prompt and navigate to the folder of your website. It will be something similiar to cd \inetpub\wwwroot\mywebsite then press enter. You can view hidden files by typing attrib *.* then pressing enter. To remove the hidden attribute use attrib -h *.* then press enter. This should allow you to view the files via explorer so you can then delete them.
    LVL 15

    Accepted Solution

    The problem is in your .htaccess file - you need to delete it.

    using ws-ftp, log into the site using the classic interface.

    In the box on the remote system (below mkdir on my copy of ws-ftp), add:


    and press enter.  This will show long listings, and show all files, including hidden ones.

    Then, delete the .htaccess file.

    Author Comment

    Thanks so much!  That worked perfectly!!!  I appreciate the help!

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    How to run any project with ease

    Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
    - Combine task lists, docs, spreadsheets, and chat in one
    - View and edit from mobile/offline
    - Cut down on emails

    Article by: IanTh
    Hi Guys After a whole weekend getting wake on lan over the internet working, I thought I would share the experience. Your firewall has to have a port forward for port 9 udp to your local broadcast x.x.x.255 but if that doesnt work, do it to a …
    What’s a web proxy server? A proxy server is a server that goes between clients and web servers, used in corporate to enforce corporate browsing policy and ensure security. Proxy servers are commonly used in three modes. A)    Forward proxy …
    Viewers will learn how to connect to a wireless network using the network security key. They will also learn how to access the IP address and DNS server for connections that must be done manually. After setting up a router, find the network security…
    This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor ( If you're looking for how to monitor bandwidth using netflow or packet s…

    779 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    12 Experts available now in Live!

    Get 1:1 Help Now