def clear(self):
    "\n        Deletes file from current working directory after the file has\n        been processed by some algorithm.\n\n        Parameters\n        ----------\n        None\n\n        Examples\n        --------\n        >>> inst = PDBFile('1rcy')\n        >>> path_to_file = inst.fetch_from_PDB()\n        >>> print(path_to_file)  # process the file using some algorithm\n        >>> inst.clear()\n        \n        "
    filename = 'pdb{}.ent'.format(self.code)
    try:
        remove(path.join(getcwd(), filename))
    except FileNotFoundError:
        print('Cannot delete file. Does not exist.')
Deletes file from current working directory after the file has
been processed by some algorithm.

Parameters
----------
None

Examples
--------
>>> inst = PDBFile('1rcy')
>>> path_to_file = inst.fetch_from_PDB()
>>> print(path_to_file)  # process the file using some algorithm
>>> inst.clear()
def clear(self):
    "\n        Deletes file from current working directory after the file has\n        been processed by some algorithm.\n\n        Parameters\n        ----------\n        None\n\n        Examples\n        --------\n        >>> inst = PDBFile('1rcy')\n        >>> path_to_file = inst.fetch_from_PDB()\n        >>> print(path_to_file)  # process the file using some algorithm\n        >>> inst.clear()\n        \n        "
    filename = 'pdb{}.ent'.format(self.code)
    try:
        remove(path.join(getcwd(), filename))
    except FileNotFoundError:
        print('Cannot delete file. Does not exist.')