First Step:
Connects to SharePoint using legacy cookie based authentication. Notice this type of authentication is limited in its functionality. We will for instance not be able to acquire an access token for the Graph, and as a result none of the Graph related cmdlets will work. Also some of the functionality of the provisioning engine (Get-PnPSiteTemplate, Get-PnPTenantTemplate, Invoke-PnPSiteTemplate, Invoke-PnPTenantTemplate) will not work because of this reason. The cookies will in general expire within a few days and if you use -UseWebLogin within that time popup window will appear that will disappear immediately, this is expected. Use -ForceAuthentication to reset the authentication cookies and force a new login. See example 10 for a full support for interactive logins using MFA and the ability to acquire Graph tokens.
Connect-PnPOnline -Url “https://xxxx.sharepoint.com/sites/xxxxx” -UseWeblogin
Second Step:
@Dayna Lovelady After manually deleting the site collection, the site collection will be at Tenant Recycle bin but you willn’t be able to delete manually. You can use below commandlet to delete it.
Clear-PnPTenantRecycleBinItem -url “https://xxxx.sharepoint.com/sites/xxxxx”
Posted from: https://techcommunity.microsoft.com/t5/sharepoint/reusing-a-deleted-sharepoint-site-name/m-p/201148
Posted from: https://pnp.github.io/powershell/cmdlets/Connect-PnPOnline.html
$PSVersionTable – check current version
PS C:\Users\xxxxxj> $PSVersionTable
Name Value
—- —–
PSVersion 5.1.22621.2506
PSEdition Desktop
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0…}
BuildVersion 10.0.22621.2506
CLRVersion 4.0.30319.42000
WSManStackVersion 3.0
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1