I'm having some trouble programmatically closing the ArcGIS Pro application without saving. In the past, I was able to call the close command and just use the SendKeys function to send "n" when I was working with ArcMap. I've tried both the Send() and SendWait() functions but it still doesn't seem to work. Any ideas?
To close Pro programmatically without saving you can first set the project's Dirty flag to false as documented here:
and then close the Pro application: