[BACKLOG-194] Refactor FileResource.doDeleteLocale