def delete(self, path, recursive=True):
_complain_ifclosed(self.closed)<EOL>return self.fs.delete(path, recursive)<EOL>
Delete ``path``.

:type path: str
:param path: the path of the file or directory
:type recursive: bool
:param recursive: if ``path`` is a directory, delete it recursively
  when :obj:`True`
:raises: :exc:`~exceptions.IOError` when ``recursive`` is
  :obj:`False` and directory is non-empty