Show "Confirm Delete" dialog for files, too

For #8651 and #10190
Do we need 2 strings with the same text?