I want to have a list of the services own by a specific owner and want to delete those Is there any way I can achieve that through python.

I was successfully able to access the services but is there any way to check their running instances , whether they are getting utilized or not, if not can we delete them?