How to set limit releases number?

in my case, i will release often, and every time source map will upload to sentry, but my source map almost 20M every time, so i want to limit release max number.

for example, if i have 30 max limit. and after 31 release i have, the first one will be delete auto.

how i can set this ? or i can only write some code to delete it? thanks!