You can clear the targeted Element based on user behavior by listening to any number of events, for example, you can replace the viewer with a "Thank you" message when a user downloads the PDF by listening for the
AdobeDC.View.Enum.PDFAnalyticsEvents.DOCUMENT_DOWNLOAD
event.