Implement the clean command.