Use the /fill command in Bedrock, and set the target block to air. If you want to replace only certain blocks, add replace plus the block name after it.

Basic command

mcfunction

/fill x1 y1 z1 x2 y2 z2 air

This clears every block in the selected area and turns it into air.

Replace only one block type

mcfunction

/fill x1 y1 z1 x2 y2 z2 air replace stone

That replaces only stone blocks in the area, leaving everything else alone.

Example

If you want to remove dirt in a cube around you, you could use:

mcfunction

/fill ~-5 ~-5 ~-5 ~5 ~5 ~5 air replace dirt

The ~ symbols make the command relative to your current position, which is handy for clearing nearby space.

Bedrock note

In Bedrock, the command format uses the coordinates first, then air, then optional fill mode or replace behavior. The newer Bedrock syntax also supports replacing connected regions with air in the Editor’s fill tool, but that is separate from the normal chat command.

Quick tip

  • Use /fill ... air to clear everything in the area.
  • Use /fill ... air replace <block> to swap only one block type.
  • Large fills can be heavy, so work in smaller sections if needed.

TL;DR: In Minecraft Bedrock, the simplest version is /fill x1 y1 z1 x2 y2 z2 air, or /fill x1 y1 z1 x2 y2 z2 air replace <block> if you only want to remove one block type.