exported delete_directory