You don't need the elseif line as you removed the "part" part in the menu definition - but that's not the problem.
I tried your current code, and it does what it's supposed to do: set the %rooms variable without the the room picked for deletion (remtok).

Maybe
- you have a duplicate menu definition?
- you have a duplicate "deleterooms" alias in the same scriptfile?