Maintenance tasks can be found in the ConfigMgr console under Administration\Site Configuration\Sites. Some of them are disabled and some enabled by default. Most of them correspond to database cleanup. There are various settings for erasing data from a ConfigMgr database; however, these configurations need to be made carefully:
Deleting old inventory history from the site database is one of the available tasks, which deletes data from the inventory that are older than 90 days; let's assume that the hardware/software inventory is set to run every 7 days, and data deletion ...