Deleting empty elements should be done recursively.