After deleting a state, I tried to create another state with the same name but was unable to do so. I got the message:

A state with the name [the name] already exists in this workflow. Please enter another name for your new state.

Comments

Same issue here. Guessing that the state is still defined in the DB but has a marker..... ? Will take a look later at manually deleting the DB record..... But the code does need fixing.

Status:Active» Closed (duplicate)

Please make a point to search for prior issues before opening a new one.

See #1347116: States don't get removed when a workflow is deleted