Is there an automatic maintenance task to shrink the database files (delete the oldest file) to avoid the disk space messages?
Yes there is but the defaults might not be appropriate for everyone and it's global.
Here Set a retirement and archiving policy more info how to configure and as well can be done per index.