Yeah, OS X doesn't handle deleting locked files as gracefully as it could. I think a much more graceful approach would be to pop up a dialog that says "Some of the files you are about to delete are locked, are you sure you want to proceed? Yes / No" But until I become emperor of the universe and institute that system, the way to do it is like GimmeSlack12 explained.