code: def remove(self):
          # type: () -> int
          
          removes = 0
          for path, info in self._make_iter(search="depth"):
              if info.is_dir:
                  self.fs.removetree(path)
              else:
                  self.fs.remove(path)
              removes += 1
          return removes
docs: Removed all matched paths.
  
          Returns:
              int: Number of file and directories removed.
  
          Example:
              >>> import fs
              >>> fs.open_fs('~/projects/my_project').glob('**/*.pyc').remove()
              29