Cli-microsoft365: New command: Permanently delete a site collection from the tenant scoped recycle bin

Created on 8 Oct 2019  路  12Comments  路  Source: pnp/cli-microsoft365

spo tenant recyclebinitem remove [options]

Permanently deletes a site collection from the tenant scoped recycle bin

Options | 聽
-- | --
-u, --url <url> | The url of the site collection in the tenant scoped recycle bin
--confirm | Confirms deletion

Implementation similar to Clear-PnPTenantRecycleBinItem cmdlet (https://docs.microsoft.com/en-us/powershell/module/sharepoint-pnp/clear-pnptenantrecyclebinitem?view=sharepoint-ps)

good first issue new feature work in progress

Most helpful comment

Glad to see you involved as well with the CLI @michaelmaillot !
The number of contributors is really booming now @waldekmastykarz that is awesome ! I'd definitely want to be able and have enough time to do more !

All 12 comments

I would also like to pick this one if it is okay for you ?

All yours @ypcode thanks for your help 馃憤馃徎

Hey @ypcode are you still working on this?

I haven鈥檛 really started that one yet.
I had investigated it a bit though but did not came with feedback yet...

the specs mentions it should be similar to PnP PowerShell implementation, but it does use CSOM. I did not manage to find a public REST API for this, should it be implemented by mimicking the CSOM http call?

If there is no REST API then let's use CSOM indeed. We have a number of commands that do that if you need some implementation reference. Want to give it a try?

Sure, but will probably not have enough time before mid-february at least, if still available I'll take it then ;)

Thanks for the update @ypcode, I'll mark this available to pick up.

Hi,

Actually, there's an endpoint for this 馃檪 :

_api/Microsoft.Online.SharePoint.TenantAdministration.Tenant/RemoveDeletedSite

I tried it and it works.

If it's ok for you @ypcode, I could take it as my first contribution to the CLI. Otherwise, I can take the one I just submit here if validated as such.

This issue is available, so we'd appreciate your help @michaelmaillot 馃憦

Why not, I'll take it if it's still available when I'm done with the Restore one

All yours @michaelmaillot thanks for the help 馃憤馃徎

Glad to see you involved as well with the CLI @michaelmaillot !
The number of contributors is really booming now @waldekmastykarz that is awesome ! I'd definitely want to be able and have enough time to do more !

Was this page helpful?
0 / 5 - 0 ratings