Can I make the DeleteTiles property work when erasing instead of placing blocks?

What if I wanted all tiles in all layers to get deleted if I erase a tile in just 1 layer. Is this a possibility with DeleteTiles? Currently all the tiles only get deleted if I PLACE a tile, not erase it.