refactor(dom) deleteSelected