Added file and folder removal functionality to BFS