How do I close documents on Mac toolbar?

Previously opened documents stay visible in my LibreOffice toolbar on my Mac. How can I make these documents invisible on the toolbar?

Thanks!