gh api --paginate '/orgs/ruby/packages/container/ruby-ci-image/versions?state=active&per_page=1000' --jq $'.[] | select ( ( .updated_at | fromdate ) < now - (60 * 60 * 24 * 365 * 2) ) | .id' | xargs -I{} -- env GH_PAGER= PAGER= gh api -X DELETE '/orgs/ruby/packages/container/ruby-ci-image/versions/{}'
https://us-media.hostdon.ne.jp/sgm135/media_attachments/files/110/732/693/632/977/014/original/b0f463318115f9c1.png