I guess that you mean restarting a level not the entire game.
Look into the manual for level_load.
level_load destroys all entities within the current level, while loading the given level in the brackets.