Remove state machine