delete( )


Deletes an element from the DOM. This is a temporary deletion. Use restore to restore the deleted element.

SEO crawlers cannot find content in an element whose deleted status is true. Content in an element that is in hidden status can be found by crawlers.

Note: An element whose deleted status is true can be edited.

The delete() function returns a Promise that is resolved when the element's deleted property has been set to true.

Method Declaration
Copy
Request
This method does not take any parameters
Was this helpful?
Yes
No