Move delete method to element scope and implement