Remove Device

I had to remove an old switch from Smart things and the KASA app because it was bad, how do i also remove it from Home assistant,