Are there ways to setup a PURGE/DELETE files rather than the whole directory?

We may be changing our process and not deleting student ids each year. In the past we'd delete student user objects and thus delete student folders.

So, instead of a delete folder, we'd like to set up a "DELETE files" each year to help purge the server storage space and automatically cleanup student folders.