Update delete_instance.py

Removed obsolete code