Delete from Material Table in Rhino 7

Hi,

When I use Materials.DeleteAt(intMatIndexToDelete) it seems that I need some sort of Commit to make it stick.

I have found Material.CommitChanges in the API-documentation but description is missing.

What is the correct way to delete material in Material Table?

Regards

Ove