This would need to be a manual process. You need to loop through each Element and compare the Layer property, adding the element to a collection for removal. Once this is done, iterate through the temporary collection a remove the associated key from the Shapes/Lines collection.
We will look to add this functionality in a future version.