Just tried this myself and just as the dialog says, it will indeed delete the files from Google Photos as well. I checked and I have the option turned off to have photos added to a google driveGoogle Drive folder. I just deleted files that were there from when I still had the option on. After a while I refreshed photos.google.com and the files were gone!