Added sync functionality to FileEntry.remove.