---
title: popToRootController()
framework: watchkit
role: symbol
role_heading: Instance Method
path: watchkit/wkinterfacecontroller/poptorootcontroller()
---

# popToRootController()

Pops all interface controllers except the app’s initial interface controller.

## Declaration

```swift
func popToRootController()
```

## Discussion

Discussion Use this method to return your interface to its initial configuration. You might do this so that you can reset your navigation hierarchy to its initial state before pushing one or more different interface controllers onto the navigation stack. Always call this method from your WatchKit extension’s main thread.

## See Also

### Implementing a navigation interface

- [pushController(withName:context:)](watchkit/wkinterfacecontroller/pushcontroller(withname:context:).md)
- [pop()](watchkit/wkinterfacecontroller/pop().md)
