[Home](./index.md) > [@snowplow/browser-tracker](./browser-tracker.md) > [CorePlugin](./browser-tracker.coreplugin.md) > [deactivatePlugin](./browser-tracker.coreplugin.deactivateplugin.md) ## CorePlugin.deactivatePlugin property Called when the tracker is being destroyed. Should be used to clean up any resources or listeners that the plugin has created. Signature: ```typescript deactivatePlugin?: (core: TrackerCore) => void; ```