---
title: removeAllUserScripts()
framework: webkit
role: symbol
role_heading: Instance Method
path: webkit/wkusercontentcontroller/removealluserscripts()
---

# removeAllUserScripts()

Removes all user scripts from the web view.

## Declaration

```swift
func removeAllUserScripts()
```

## See Also

### Adding and Removing Custom Scripts

- [addUserScript(_:)](webkit/wkusercontentcontroller/adduserscript(_:).md)
- [userScripts](webkit/wkusercontentcontroller/userscripts.md)
