Pass it the index of the block in state that would be destroyed. The function will return whatever is left in state after triggering the destruction of said block.
Just main().