As the title suggests, I had to edit the registry keys in the following path due to some Onedrive issues. My Documents and Pictures folders could not be pointed to the local path. They were pointing to the folders created by Onedrive. So I followed the answer of Stevosiak and resolved the issue of not being able to get rid of the Onedrive folders.
However, now I have disabled backups for both of the folders in Onedrive and now it is showing me two Documents and Pictures folders have the same path when I checked the registry again out of curiosity. I am still able to understand why this is the case.
Two folders have the same location paths as their data value