Separate file deletion from db record deletion.