It might be easier to use a loop going from the first object you've got in your level to the last, and checking if the object exists, if so delete/hide it. So if you had objects 7,12,13,14,15,85,97,and 100, you'd use a loop like so;
FOR x = 7 TO 100
IF OBJECT EXIST(x)
DELETE OBJECT x
ENDIF
NEXT x
A lot shorter. You could also have an array for each level that holds what objects are required for that level, like so;
DIM Levels(2,8)
Levels(1,1) = 7
Levels(1,2) = 12
Levels(1,3) = 13
Levels(1,4) = 14
Levels(1,5) = 15
Levels(1,6) = 85
Levels(1,7) = 97
Levels(1,8) = 100
Levels(2,1) = 4
Levels(2,2) = 5
Levels(2,3) = 8
Levels(2,4) = 12
Levels(2,5) = 45
And then you could add that into the loop like this;
Level = 1
FOR x = Levels(Level,1) TO Levels(Level,8)
IF OBJECT EXIST(x)
HIDE OBJECT x
ENDIF
NEXT x
Level = 2
FOR x = Levels(Level,1) TO Levels(Level,8)
IF OBJECT EXIST(x)
SHOW OBJECT x
ENDIF
NEXT x
Somethin like that, makes it easier. Still needs some tweaking but I've got to go for now. Goodluck.

Projects: Online CTF Game | Newcommer's Guide to FPS's