automatically set expired=True when codes are not reuseable
remove artifact