With the release of Windows 10 version 2004, the Windows Defragger has become a mess as it starts to defrag SSD drives too often, perform trim on non-SSD drives, and forgets when it last optimized a drive. Microsoft states that the issue has been fixed in Windows 10 Insider Preview build 19551. If you use an SSD drive, it is suggested that you disable the automatic drive optimization of SSD drives. Microsoft developers have stated in the past that there is some benefit to defragging a solid-state drive that has become heavily fragmented.
Source: https://www.bleepingcomputer.com/news/microsoft/windows-10-alert-defragger-bug-defrags-ssd-drives-too-often/

