Destroys the given element or selector.
Takes care that all
up.compiler() destructors, if any, are called.
The element is removed from the DOM.
Note that if you choose to animate the element removal using
the element won't be removed until after the animation has completed.
A URL that will be pushed as a new history entry when the element begins destruction.
The document title to set when the element begins destruction.
The animation to use before the element is removed from the DOM.
The duration of the animation. See
The delay before the animation starts. See
The timing function that controls the animation's acceleration.
A promise that will be resolved once the element has been removed from the DOM.