How to delete GitHub Old Release programmatically

How to delete Github Old Release programmatically? or Can we set a timer maybe in GitHub actions to delete old release after 7days of its creation.

I’m aware of the following

git tag -l 
960846220
961015639
list

git push --delete origin 960846220
To https://github.com/cyx/abcd.git
 - [deleted]         960846220

$ git push origin :refs/tags/961015639  
To https://github.com/cyx/abcd.git
 - [deleted]         961015639

First of all I am curious what is the point?

This App may help…

We wanted to delete some stale releases or uncalled erroneous releases if at all there is one.
Thanks,

Although, I realized I’d delete with below one-liners as well.

$ git tag -l| head -1 | xargs -I %  bash -c 'git tag -d %;git push origin :refs/tags/%'
Deleted tag '960846220' (was b546bf9)
To https://github.com/cyx/abcd.git
 - [deleted]         960846220

$ git tag -l
961015639

$ git tag -l| head -1 | xargs -I %  bash -c 'git tag -d %;git push origin :refs/tags/%'
Deleted tag '961015639' (was a293e27)
To https://github.com/cyx/abcd.git
 - [deleted]         961015639

$