Couldn't you have just deleted the layer?
I think that would have been easier