generic: added force and pretend arguments to the clean command, fixes #426, refs #53