---
title: invalidate()
framework: translation
role: symbol
role_heading: Instance Method
path: translation/translationsession/configuration/invalidate()
---

# invalidate()

Invalidate the current translation session and re-run it with new content.

## Declaration

```swift
mutating func invalidate()
```

## Discussion

Discussion Call this method when you want to translate new content using the same source and target languages. When you do, it causes the translationTask(_:action:) function to call its action closure and translate the content again.
