def clean_project(self, app_name=None, delete_all=False):
if not app_name and not delete_all:<EOL><INDENT>ConuException("<STR_LIT>")<EOL><DEDENT>if delete_all:<EOL><INDENT>args = ["<STR_LIT>"]<EOL>logger.info('<STR_LIT>')<EOL><DEDENT>else:<EOL><INDENT>args = "<STR_LIT>" % app_name<EOL>logger.info('<STR_LIT>', app_name)<EOL><DEDENT>try:<EOL><INDENT>o = run_cmd(self._oc_command(["<STR_LIT>", "<STR_LIT:all>", args]),<EOL>return_output=True)<EOL>o_lines = o.split('<STR_LIT:\n>')<EOL>for line in o_lines:<EOL><INDENT>logger.info(line)<EOL><DEDENT><DEDENT>except subprocess.CalledProcessError as ex:<EOL><INDENT>raise ConuException("<STR_LIT>" % ex)<EOL><DEDENT>
Delete objects in current project in OpenShift cluster. If both parameters are passed,
delete all objects in project.
:param app_name: str, name of app
:param delete_all: bool, if true delete all objects in current project
:return: None