Support for removal of dom elements.