---
title: "unregisterClass(_:)"
framework: foundation
role: symbol
role_heading: Type Method
path: "foundation/urlprotocol/unregisterclass(_:)"
---

# unregisterClass(_:)

Unregisters the specified subclass of URLProtocol.

## Declaration

```swift
class func unregisterClass(_ protocolClass: AnyClass)
```

## Parameters

- `protocolClass`: The subclass of doc://com.apple.foundation/documentation/Foundation/URLProtocol to unregister.

## Discussion

Discussion After this method is invoked, protocolClass is no longer consulted by the URL loading system.

## See Also

### Registering and unregistering protocol classes

- [registerClass(_:)](foundation/urlprotocol/registerclass(_:).md)
