Click or drag to resize

CaseManagerDelete Method

Deletes a case from Early Data Analyzer. 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:  Law.EdaIntegration.Case
Assembly:  Law.EdaIntegration (in Law.EdaIntegration.dll) Version: 7.2
Syntax
C#
public void Delete(
	string caseId,
	bool removeHomeDirectory = true
)

Parameters

caseId
Type: SystemString
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 from Early Data Analyzer.
C#
using Law.EdaIntegration;
using Law.EdaIntegration.Case;

class Sample
{
    public static void Main()
    {
        string connectionString = @"Data Source=localhost;Initial Catalog=EDA_Management;Integrated Security=False;User ID=myUserId;Password=myPassword";
        EdaIntegration edaIntegration = new EdaIntegration();
        edaIntegration.InitializeEnvironment(connectionString);

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