You are here: Symbol Reference
Symbol Reference
> Ofcas.Lk.Api.Client.Core Namespace > Interfaces > IProjectCenter Interface
> IProjectCenter Methods > IProjectCenter.DeleteChildren Method
Close
Ofcas.Lk.Api.Client - Version 3.0.2
IProjectCenter.DeleteChildren Method

Delete projects based on the given list of IProjectInfo. The projects will be deleted without user interaction. If a project already is in the recycle bin (see IProject.IsInRecycleBin), the project will be deleted permanently. Otherwise the project will be moved to the recycle bin. You can use ForceDeleteChild or ForceDeleteChildren if a project is not in the recycle bin and should be deleted permanently on the first call.

Syntax
C#
IDeleteChildrenResult DeleteChildren(IEnumerable<IProjectInfo> projectInfos);
Parameters
Description
IEnumerable<IProjectInfo> projectInfos
The list of IProjectInfo to be deleted.

Returns an IDeleteChildrenResult in which, for example, it is defined which projects have been moved to recycle bin or which projects have been completely deleted.

only projects from a ProjectCenter-instance can be deleted. The recycle bin is a separate ProjectCenter-class that contains deleted projects. A mix is not possible. Therefore, the result of the operation can only be that all projects have been moved to the recycle bin.

Copyright © 2022. All rights reserved.