As we transition to the new Hyland Community, some post links may be temporarily disrupted as we finalize redirects. We apologize for the inconvenience and are working to resolve this as quickly as possible. Details.
var emlNodes = search.savedSearch("workspace://SpacesStore/d295c8dd-9f04-4047-9210-31d00d52bd23"); // I am using a saved search where I search for *.eml of mimetype EMail for (var i=0; i < emlNodes.length; i++) { var emlRecord = emlNodes[i]; emlRecord.removeAspect("{http://www.alfresco.org/model/recordsmanagement/1.0}filePlanComponent"); if (!emlRecord.isVersioned) { emlRecord.remove(); } }