if you are using E+ Subscription, Just use a cleanup policy, a pretty new feature introduced recently that helps you remove stale data/anything based on specific criteria from Artifactory to free up storage and improve system performance
Otherwise, you can see the other response here with the posted blog