combit List & Label 29 - .NET Help
combit.ReportServer.ClientApi.Services Namespace / IDataSourceService Interface / DeleteAsync Method
ID of the data source to delete.
If this parameter is set false, an combit.ReportServer.ClientApi.InvalidInputException is thrown if the data source is still used in report templates. The data source is not deleted in that case.


In This Topic
    DeleteAsync Method (IDataSourceService)
    In This Topic
    Deletes the data source on the server.
    Syntax

    Parameters

    dataSourceId
    ID of the data source to delete.
    ignoreRemainingReferences
    If this parameter is set false, an combit.ReportServer.ClientApi.InvalidInputException is thrown if the data source is still used in report templates. The data source is not deleted in that case.
    Exceptions
    ExceptionDescription
    Thrown when the data source is still used by report templates, and ignoreRemainingReferences is not true.
    Requirements

    Platforms: Windows 10 (Version 21H2 - 23H2), Windows 11 (21H2 - 22H2), Windows Server 2016 - 2022
    .NET: .NET Framework 4.8, .NET 6, .NET 7, .NET 8

    See Also