Are you sure you want to remove the instance = $this->escape($this->name) ?>?
If you have still any environments or views refering to this instance, you won't be able to send commands anymore after deletion.