public IList<string> Delete(CmisPath cmisPath, bool recursive) { ICmisObject obj; if (!TryGet(cmisPath, out obj)) { // fail otherwise return new string[] { _curDir.Combine(cmisPath).ToString() }; } return Delete(obj, recursive); }
protected override void ProcessRecord() { var navigation = new CmisNavigation(CmisSession, WorkingFolder); if (Path != null) { foreach (var path in Path) { WriteFailErrors(navigation.Delete(path, Recursive.IsPresent)); } } else { foreach (var obj in Object) { WriteFailErrors(navigation.Delete(obj, Recursive.IsPresent)); } } }