---
title: "removeProperty(forKey:in:)"
framework: foundation
role: symbol
role_heading: Type Method
path: "foundation/urlprotocol/removeproperty(forkey:in:)"
---

# removeProperty(forKey:in:)

Removes the property associated with the specified key in the specified request.

## Declaration

```swift
class func removeProperty(forKey key: String, in request: NSMutableURLRequest)
```

## Parameters

- `key`: The key whose value should be removed.
- `request`: The request from which to remove the property value.

## Discussion

Discussion This method is used to provide an interface for protocol implementors to customize protocol-specific information associated with URLRequest objects, or NSMutableURLRequest objects in Objective-C.

## See Also

### Getting and setting request properties

- [property(forKey:in:)](foundation/urlprotocol/property(forkey:in:).md)
- [setProperty(_:forKey:in:)](foundation/urlprotocol/setproperty(_:forkey:in:).md)
