Added the possibility to delete a directory