Hiding/Removing Environments using python

First, out of curiosity is a world of dev and staging env, why can’t we delete staging env that are no longer need

Second, since the only option is to hide it from the UI, is there a python way to obtain a staging env and hide it( not using the console)?