DeletButton in function