In LibreOffice, particularly LibreOffice Impress (and also in Writer), if you want to protect or remove sensitive portions of a document before sharing it, you should use the Redact feature.
Redact allows you to permanently hide or remove confidential information from a file.
It ensures the sensitive content is not recoverable after redaction.