Added methods for deleting a file or directory recursively.