I was working with SharePoint and found an object that I needed to delete
NOTE that lega… is the friendly name. Well not really. On close examination appears that the name was corrupt. The name was lega … with more info.
So using a where-object I gathered a couple of objects and saved as an array.
Then deleted the first object in the array using the name property.
HTH