You can use this API to list the artifacts in the repository. You can then simply delete artifacts by referencing this guide. You can also set a custom retention period to something other than the default 90 days, by referencing this guide.