We use Powershell with CSOM to remove and provision site collections in SharePoint Online during the development phase. We use the Powershell commands provided by the PnP team like this:
Connect-SPOnline -Url $tenantAdministrationUrl -Credentials $credentials Remove-SPOTenantSite -Url $PortalSiteCollectionUrl -SkipRecycleBin Start-Sleep 15; Connect-SPOnline -Url $tenantAdministrationUrl -Credentials $credentials New-SPOTenantSite -Title $PortalSiteCollectiontTitle -Url $PortalSiteCollectionUrl -Owner $PortalOwnerAlias -Lcid $PortalLanguageId -Template $PortalSiteTemplateName -TimeZone 3 -RemoveDeletedSite
Sometimes the site collections are removed but they somehow still is available in the background as I can't create new site collections at the same url, not by Powershell and not by using the UI. I have also looked in the trash bin for site collections and they are not there either. It's like they are ghost site collections.
Have anyone else experienced this and found a solution for removing them?