Skip to main content

WasmEdge_VMForceDeleteRegisteredModule

Function WasmEdge_VMForceDeleteRegisteredModule 

Source
pub unsafe extern "C" fn WasmEdge_VMForceDeleteRegisteredModule(
    Cxt: *const WasmEdge_VMContext,
    ModuleName: WasmEdge_String,
)
Expand description

Forcibly delete a registered module from the VM context.

\warning This function does not check whether other modules depend on the target. Deleting a module that is still in use may cause undefined behavior or crashes.

A safer deletion API may be introduced in the future once module dependency management is implemented.

\param Cxt the WasmEdge_VMContext to delete the module from. \param ModuleName the name of the module to delete.