---
title: webPlugInDestroy()
framework: Objective-C Runtime
role: symbol
role_heading: Instance Method
path: objectivec/nsobject-swift.class/webplugindestroy()
---

# webPlugInDestroy()

Prepares the plug-in for deallocation.

## Declaration

```swift
func webPlugInDestroy()
```

## Discussion

Discussion Typically, this method frees the memory and other resources used by the plug-in. For example, if the plug-in had a copy of a WebPlugInContainer object, this method should relinquish ownership of that object. Do not send any other messages to the plug-in after invoking this method, because calling this method destroys the plug-in. No other methods in this interface may be called after the application has called this method.

## See Also

### Controlling the Plug-in

- [webPlugInInitialize()](objectivec/nsobject-swift.class/webplugininitialize().md)
- [webPlugInStart()](objectivec/nsobject-swift.class/webpluginstart().md)
- [webPlugInStop()](objectivec/nsobject-swift.class/webpluginstop().md)
