Added delete method to Directory class (see bug 2776)