Flat worlds are useful for creative servers, or just getting a fresh clean start. These worlds only have 4 layers of blocks and nothing else.
Edit Server / Settings and change Level Type to FLAT.
Once you've done this, go to
Edit Server / World and click Reset World.
This will reset your world and replace it with a flat one. Once you've completed those steps, restart your server and you should have a flat world.