Click or drag to resize

ICaseManagerDelete Method

Deletes a case. This will delete the database and optionally the associated home directory for this case.

The amount of time it will take for this operation to complete will vary based on the whether the database is in use and the number and size of files in the Home Directory if the directory is being removed as well.

Important note Important
This feature is intended for use in testing with the EdaIntegration Library. Please exercise caution in its use because there is no undo function for this action.

Namespace:  EdaIntegrationContract
Assembly:  EdaIntegration.Contract (in EdaIntegration.Contract.dll) Version: 7.6
Syntax
C#
void Delete(
	Guid caseId,
	bool removeHomeDirectory = true
)

Parameters

caseId
Type: SystemGuid
The unique identifier of the case to be deleted
removeHomeDirectory (Optional)
Type: SystemBoolean
Flag to indicate if the home directory should also be removed
Examples
This example demonstrates deleting a case.
C#
using EdaIntegrationContract;
using EdaIntegrationContract.Case;

class Sample
{
    public static void Main()
    {
        var edaIntegration = new EdaIntegration().ConnectToExplore();

        ICase edaCase = edaIntegration.Cases.OpenCaseByName("Case 2");
        edaIntegration.Cases.Delete(edaCase.Id);
    }
}
See Also