Thanks for contacting support.
When using Aspose.Slides, please note that OLE Objects are derived from Shapes class and are of type Shapes. They can be removed from slide shape collection. For more information, please visit ShapeCollection.Remove method and ShapeCollection.RemoveAt method.
Now concerning to Word files, please try using Node.Remove method in Aspose.Words for .NET
NodeCollection shapes = doc.GetChildNodes(NodeType.Shape, true);
// Loop through all shapes
foreach (Aspose.Words.Drawing.Shape shape in shapes)
if (shape.OleFormat != null)