Add an option flag to preview what changes will be made. This will help to avoid removing files you actually wanted to keep by accident.