How do I clear All OS X notifications with 1 click?
tell application "System Events"
    tell process "NotificationCenter"
        set numwins to (count windows)
        repeat with i from numwins to 1 by -1
            click button "Close" of window i
        end repeat
    end tell
end tell


Copy and Paste the above code into AppleScript Editor
Enable Script Editor in Accessibility