working del_instance