Updated remove_instance.pl