API implimented. delete function hides all instances and removes all children elements