Delete blocks in the correct order when clearing a workspace.