Added confirmation for deleting locked file