Further investigate [this](https://community.home-assistant.io/t/my-maintenance-package/41081) post on how to setup maintenance tasks from within homeassistant.
Further investigate this post on how to setup maintenance tasks from within homeassistant.