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

Deletes a list of IProjectInfo without user interaction

Syntax
C#
IDeleteChildrenResult DeleteChildren(IEnumerable<IProjectInfo> childrenInfo, bool forceDelete = false);
Parameters
Description
IEnumerable<IProjectInfo> childrenInfo
The list of IProjectInfo to be deleted.
bool forceDelete = false
Indicates whether the children should be completely 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 or all projects have been permanently deleted.

Copyright © 2022. All rights reserved.