It clears the document properties (title, author, subject, keywords, creator, producer and dates), the embedded XMP packet, and application-private data attached to the document and its pages. The removed data is deleted from the file, not just hidden.
It doesn't change visible content. Names written on the pages, comments, form fields, and details stored inside embedded images stay as they are. To remove text from a page, use redaction.