0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

SharePoint Online Management Shell 備忘録

Posted at

はじめに

SharePointOnline(ノーコード)で社内ポータルサイトを構築した際の備忘録です。

Office 365 グループに紐付けられたチームサイトの完全削除手順

チームサイトは画面で完全削除ができないためSharePoint Online Management Shellを使用して完全削除を行う。

# SharePointにログイン
Connect-SPOService -Url https://hogehoge.sharepoint.com

# [削除されたサイト] にあるサイトコレクション一覧を取得
Get-SPODeletedSite

# 以下のコマンドで完全削除(https〜は2つ目のコマンド実行時にurlが一覧で表示されるため対象のものをコピペ)
Remove-SPODeletedSite -Identity https://hogehoge.sharepoint.com/sites/hogehoge

# 削除後確認
Get-SPODeletedSite

リダイレクト設定削除

サイトのアドレスを変更するとそのアドレスはリダイレクト設定から削除しないと再度使用できない。

# SharePointにログイン
Connect-SPOService -Url https://hogehoge.sharepoint.com

# リダイレクト設定一覧を取得
Get-SPOSite -Template REDIRECTSITE#0

# 以下のコマンドで完全削除(https〜は2つ目のコマンド実行時にurlが一覧で表示されるため対象のものをコピペ)
Remove-SPOSite -Identity -Identity https://hogehoge.sharepoint.com/sites/hogehoge

# 削除後確認
Get-SPOSite -Template REDIRECTSITE#0

公式ドキュメント

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?