delete state machine