I am trying to drop the local database in my replica set so that I can rename the replica set, but I keep getting the below error
errmsg" : "not authorized on local to execute command { dropDatabase: 1.0, lsid: { id: UUID(\"4a92bd75-2e25-4fab-abd7-2d72f65050c7\") }, $db: \"local\" }"
I am using a user who has root privileges and I am using MongoDB 4.0. Anyone know why this is happening?