Registry cleanup api and removing old pipelines in bulk

I am working on GitLab Enterprise Edition v17.3

  • is there an api to cleanup old pipelines (depending on status) in bulks rather than individually similar to the registry cleanup policy rule?
  • for the container registry api (Delete registry repository tags in bulk) the keep_n only accepts specific values that doesn’t meet our requirements, keeping a single image is not optimal and keeping 5 images takes more storage. Is there is a possibility to add other options like 3 images or accept any int value?

thank you