Backend for directory delete