Added remove directory handler