How to mark devices as expired

Had to git clone in order to find this code. And didn't want to.