How to perform Mac unload module?

Hello,
How to perform mac unload module?
I want to know about unloading, removing and deleting module on mac operating system.
Can you give me a step by step process or method to be followed so that I will be able to know how it works and to fix this issue as well?
Thank you.
