Your comments

If no --> ask user "States are not the same for all buttons, delete? " (or something like that)

You wrote "delete", but if you want to delete:

1. What should happen, If the first button has 1 state, but the second button has 2 state?

2. What should happen, If the first button has 7 state, but the second button has 2 state?