({{, (RefLink[LibraryFunctionUnload, paclet:ref/LibraryFunctionUnload])[fun] 
unloads a (RefLink[LibraryFunction, paclet:ref/LibraryFunction]) so that it cannot be used.}})

OpenersNotesSection(Spacer1)Details

LibraryFunctionUnload unloads a LibraryFunction so that it can no longer be used.

On certain platforms, when all functions from a library have been unloaded, the library can be modified and reloaded.

LibraryUnload unloads all functions from a library.

When a Wolfram Library is unloaded, an uninitialization function in the library is called.

When all functions from a Wolfram Library are unloaded, the library is unloaded.

OpenersPrimaryExamplesSection(Spacer1)Examples  (1)

OpenersExampleSection0(Spacer1)Basic Examples  (1)

LibraryFunction objects are generated by LibraryFunctionLoad:

fun=LibraryFunctionLoad["demo", "demo_I_I",{Integer},Integer]

LibraryFunction objects can be used as Wolfram Language functions:

fun[10]

This unloads the function:

LibraryFunctionUnload[fun]

Now the (RefLink[LibraryFunction, paclet:ref/LibraryFunction]) cannot be used:

fun[10]

({{DocumentationFooterIconsRelatedFunction.png, ({{See Also}, {(RefLink[LibraryFunctionLoad, paclet:ref/LibraryFunctionLoad])  ▪  (RefLink[LibraryUnload, paclet:ref/LibraryUnload])  ▪  (RefLink[FindLibrary, paclet:ref/FindLibrary])  ▪  (RefLink[LibraryFunction, paclet:ref/LibraryFunction])}})}})

({{DocumentationFooterIconsRelatedTutorial.png, ({{Tutorials}, {▪(RefLinkPlain[Library Link User Guide, paclet:LibraryLink/tutorial/Overview])}, {▪(RefLinkPlain[Library Structure, paclet:LibraryLink/tutorial/LibraryStructure])}, {▪(RefLinkPlain[Interacting with the Wolfram System, paclet:LibraryLink/tutorial/InteractionWithWolframLanguage])}})}})

({{DocumentationFooterIconsRelatedGuide.png, ({{Related Guides}, {▪(RefLinkPlain[Wolfram LibraryLink, paclet:guide/LibraryLink])}, {▪(RefLinkPlain[C/C++ Language Interface, paclet:guide/CLanguageInterface])}, {▪(RefLinkPlain[Calling External Programs, paclet:guide/CallingExternalPrograms])}})}})