An antivirus program typically offers three options for what to do when it finds a virus:
Windows Defender What to do with quarantined items and the list of detected items
Delete and cleanup sound similar, but they are not synonymous. One removes the file from your computer, and the other attempts to recover the infected data. Quarantine moves the offending file. Knowing what action to take in a given situation is crucial to the health of your computer.
Here's a quick overview of their functions:
Removal is tricky. If you tell your antivirus software to delete all infected files, some files that are crucial to your computer’s operating system may be deleted. This can affect the functionality of your operating system and programs.