---
title: "removeConstraints(_:)"
framework: uikit
role: symbol
role_heading: Instance Method
path: "uikit/uiview/removeconstraints(_:)"
---

# removeConstraints(_:)

Removes the specified constraints from the view.

## Declaration

```swift
func removeConstraints(_ constraints: [NSLayoutConstraint])
```

## Parameters

- `constraints`: The constraints to remove.

## Discussion

Discussion When developing for iOS 8.0 or later, use the NSLayoutConstraint class’s  deactivate(_:) method instead of calling the removeConstraints(_:) method directly. The deactivate(_:) method automatically removes the constraints from the correct views.

## See Also

### Managing the view’s constraints

- [constraints](uikit/uiview/constraints.md)
- [addConstraint(_:)](uikit/uiview/addconstraint(_:).md)
- [addConstraints(_:)](uikit/uiview/addconstraints(_:).md)
- [removeConstraint(_:)](uikit/uiview/removeconstraint(_:).md)
