<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def cli(ctx, project_dir):
 """Clean the previous generated files."""

    exit_code = SCons(project_dir).clean()
    ctx.exit(exit_code)