Option-click on a window's red close button closes all open windows/documents in a macOS app, but I don't know of a "delete all" shortcut, so (unfortunately) all unsaved documents will get a confirmation dialog in their window where you have to click the delete button.
There used to be command key shortcuts for the don't save/cancel/save (command-d/s/c iirc?) dialog buttons, but they've changed the ui to delete/save and seem to have removed the keyboard equivalents.
The right way to do it (in my opinion) would be option-click on the Delete button or command-option-D, but they don't seem to have implemented that.