Wrangler delete deployment

Hello everyone!
Just getting started with wrangler for simple pages deployment.
I understand that it can be done with wrangler pages deploy <DIR> --branch easily.
But how to delete all old deployments afterwards? Don’t want to pile them up.
I saw there is an API available for it, but then if I need to use both wrangler and API I would rather use just API.

1 Like