Destroy function module development

I am writing a module and if i want the destroy function to be called when i try to delete that instance of the module but it is not the case as my destroy function is not being called. Is there any other way out ?