How can I bulk clean up the expired artifacts

Hello all,

My project has 23G artifacts in it.
I want to set up a schedule to clean up artifacts that are 3 days old.

I’ve seen some issues that can use curl --request DELETE to remove it.
But my boss asked to keep the files with tags, it’s better to set schedule to clean up these artifacts.

What should I do?