Which IDs should we set when removing nested elements?

The parent ID and the child IDOnly the parent IDOnly the child ID

The parent ID and the child ID.