Probably not the best way to do it, honestly. You'd be better off creating the additional objects (at the start of the layout) based on the difficulty, that way you can have everything on one layer.
The only solution I can think of to the way you did it would be to use "Pick All" on every instance of that object, test if it is on a certain layer number/name, and then destroy it if it is.