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.

12345678
const checkout = await Primer.showUniversalCheckout(  clientToken,  options,);
// Refresh client session by calling refreshClientSession// This will result in Drop-In Checkout having access to the latest changes made to the client sessioncheckout.teardown();
jsx
copy