add the clean command implementation