Forum Discussion
Dean_Gross
Dec 10, 2017Silver Contributor
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
...
- Dec 10, 2017Deleted groups are held for 30 days. See https://support.office.com/en-us/article/Restore-a-deleted-Office-365-Group-b7c66b59-657a-4e1a-8aa0-8163b1f4eb54 for how to permanently remove a group. Then the URL should become available after a little while.
Dean_Gross
Dec 10, 2017Silver 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
Anonymous
Dec 10, 2017That 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.
- Mikael SvensonDec 10, 2017Iron Contributor
Deleted wrote:
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.Seems to work last time I tested. I’ll retest tomorrow and report.
-m
- Dec 10, 2017Agree with Mikael, If everything is as it should, the site collection is going to be permanently removed so the URL should be available again
- Dean_GrossDec 10, 2017Silver Contributor
I used
Remove-AzureADMSDeletedDirectoryObject
The associated site was NOT deleted
How would you recommend deleting the site?