I followed the instructions in the https://support.esri.com/en/Technical-Article/000026951. I encountered the PermissionError after running "--delete" command (see below for the error). I stopped all ArcGIS Server services and restarted the server, but it didn't fix the problem. There are other ArcGIS Servers having the same issue in our organization. I would very much appreciate the solution to this issue.
PermissionError: [WinError 32] The process cannot access the file because it is being used by another process: 'C:\\Program Files\\ArcGIS\\Server\\framework\\lib\\shared\\log4j-core-2.11.1.jar'
Thank you,
Makiko