How to Mass Delete Blocks in Minecraft with the /fill Command
If you want to quickly and efficiently clear a large area in Minecraft, without manually destroying blocks, the built-in /fill command will help you. It which allows you to instantly remove any blocks in a given volume. Below is a detailed and step-by-step guide on how to do this.
Select the area to be cleared. You can choose a section of forest, mountain or underground space. Climb above this area so you can accurately see its boundaries, and stand at the point from where you want to start clearing.
This will be one of the two coordinate points between which the removal will take place.
Now specify the coordinates of this position. In the Java version of Minecraft, press the F3 key - debugging information will appear on the screen, including the player's coordinates. Pay attention to the X, Y and Z values - they are displayed on the left side of the screen.
In Bedrock-version coordinates can be enabled through the settings by checking the “Show coordinates” option in the menu when creating a world or in pause.
Once you have fixed the first point, open chat with the T key and record the coordinates. Integer values are sufficient, fractional values can be omitted. If necessary, write down the coordinates on paper or in a separate document so you don't forget.
Now move to the second point opposite the first point. This should be the lowest point of the area to be cleared. If you want to remove blocks deeper, simply dig into the ground or descend into a cave until you reach the desired height. Again, fix the coordinates of that location.
When you have both coordinates in hand, open chat and start typing your command. First write /fill, then specify the coordinates of the first point, then put a space and specify the coordinates of the second point.
At the end add air - this means that all blocks in the specified area will be replaced with air. The command will look like this:
/fill -123 70 245 -130 60 250 air
After pressing Enter, all blocks in the specified volume will be instantly deleted and you will get free space.
There are limitations on the size of the area - by default no more than 32,768 blocks at a time. If you need to clear more, you will have to divide the area into several sections and execute the command one by one.