DeleteEnclave function (enclaveapi.h)
Deletes the specified enclave.
BOOL DeleteEnclave( [in] LPVOID lpAddress );
The base address of the enclave that you want to delete.
TRUE if the enclave was deleted successfully; otherwise FALSE. To get extended error information, call GetLastError.
For a list of common error codes, see System Error Codes. The following error codes also apply for this function.
||The execution of threads running with the enclave was not ended, because either TerminateEnclave was not called, or the execution of the threads has not yet ended in response to an earlier call to TerminateEnclave.|
|Minimum supported client||Windows 10, version 1709 [desktop apps only]|
|Minimum supported server||Windows Server 2016 [desktop apps only]|