How do I clear an area when the player clicks a square?

I am recreating minesweeper for a challenge, I have mostly everything done, but I need it to clear the empty tiles and the numbers lining the empty tiles.
How do I do this?


I need it to clear those all of those squares when you click any of them.

Please check the available resources before opening a new topic. There is a minesweeper example project.