delete Register & commandcontroller