Delete entire context
If the client wants to delete all data related to an import context, it is possible by using the ContextId returned in the call to OpenImportContext.
EXEC DeleteImportContext 14
The call to this procedure may take some time to complete, as many rows of data may have to be deleted from multiple tables. The data is deleted with a foreign key with cascading deletes. Deleting a row in the ImportBatch table may cause cascading deletes for data in LabData, ClinProblem and DrugTreatment.