Click or drag to resize

ISourceManagerDelete Method

Deletes one or more sources
Caution note Caution
When deleting a source, the documents and metadata associated with that source will also be deleted.

Namespace:  EdaIntegrationContract.Import
Assembly:  EdaIntegration.Contract (in EdaIntegration.Contract.dll) Version: 1.0
Syntax
C#
void Delete(
	IEnumerable<int> sourceIdsToDelete
)

Parameters

sourceIdsToDelete
Type: System.Collections.GenericIEnumerableInt32
The list of unique identifiers of the sources to be deleted
Examples
The following example demonstrates deleting a list of sources.
C#
using EdaIntegrationContract;
using EdaIntegrationContract.Case;
using EdaIntegrationContract.Import;

class Sample
{
    public static void Main()
    {
        var edaIntegration = new EdaIntegration().ConnectToExplore();
        ICase edaCase = edaIntegration.Cases.OpenCaseByName("Case 1");

        List<int> sourceIdsToDelete = new List<int>
        {
            15,
            21,
        };
        edaCase.Sources.Delete(sourceIdsToDelete);
    }
}
See Also