How to remove area (graphUpdateScene) in runtime

I would like to know how I can remove a restriction area in execution.
I have used this code in the graphUpdateScene class:

protected override void OnDisable()
{
base.OnDisable();
if (AstarPath.active != null && Application.isPlaying)
{
var guo = new GraphUpdateObject(GetBounds());
AstarPath.active.UpdateGraphs(guo);
}
}

but I can’t remove the restriction area, there should be a graphUpdates.RemoveToQueue (ob) method

Hi

The UpdateGraphs method (with those guo settings) just recalculates the graph in a given region. So to remove the changes you would just remove whatever obstacle you had placed there and call UpdateGraphs again.