Added deleteInstance