1. If the system detects any duplicate file, then the user has the option to automatically remove those files. These…