I meant that the if statement should be unnecessary; just `delete bankForRegistrationName[id];` should work.