> ## Documentation Index
> Fetch the complete documentation index at: https://primer.io/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# teardown

Remove Primer's Drop-In Checkout UI from the DOM.

This method removes completely the checkout UI from the DOM. It also marks the `UniversalCheckout` instance as torn down, which will raise an error if any operation that requires the UI is attempted.

```jsx JSX theme={"dark"}
const checkout = await Primer.showUniversalCheckout(clientToken, options);

checkout.teardown();
```
