Old Device Detection databases are not deleted automatically


Description

The Device Detection database files in the /App_Data/DeviceDetection folder are never deleted when the updates happen. Sitecore XP downloads an updated database periodically. When the new database is downloaded, the old ones are supposed to be deleted. Currently, obsolete databases remain stored in the file system, which causes unnecessary disk space usage.

Solution

As a workaround for the issue:

OR

In case Device Detection is not used:

Remove databases and disable Device Detection in order to prevent Sitecore XP from downloading the database again: