Automate deletion of Infrastructure and cloud objects

Added test for deletion of infrastructure and cloud objects
I think the block of the code inside the function can live in this `try:` clause with no fuss. This call is unnecessary (unless you are planning to use this function more than once).