Forum Discussion

Dean_Gross's avatar
Dean_Gross
Silver Contributor
Dec 10, 2017
Solved

New sites have numbers at end of URL - how to cleanup?

I'm created some new group enabled sites using the new-pnpsite cmdlet. When they got created, the site urls have numbers at the end, here is an example:

https://tenant.sharepoint.com/teams/oao16 

 

We previously had an OAO group, which was deleted on 12/7 (3 days ago). When I deleted it, I was warned that it could take up to 24 hours for the cleanup jobs to run, so I waited longer than that to be safe but I still ran into this problem. I'm guessing that the jobs have not really completed, and that the numbers got stuck on the end automatically to prevent a URL conflict, but I'm not sure about this. 

Has anyone else seen anything like this?

Any suggestions on how to fix this would be appreciated. 

Erwin van Hunen

 

19 Replies

    • Dean_Gross's avatar
      Dean_Gross
      Silver Contributor

      Once again, you have given me a great answer :). Thank you very much, the message that was provided in the UI did not provide any clue that this was how it worked

      • Deleted's avatar
        Deleted
        That will not release the URL you still have to manually delete the SharePoint site afterward via powerhell since for whatever reason the group process doesn’t.
  • These sites never seem to go away. They might be tied to one drive retention or something but you have to manually delete the Sharepoint site via power shell to get it to go away after deleting the group. When I get back to a computer I’ll find the commands unless you do or someone beats me too it :p.

Resources