Table of Contents

Remove-PnPStorageEntity

SYNOPSIS

Remove Storage Entities / Farm Properties from either the tenant scoped app catalog or the current site collection if the site has a site collection scoped app catalog

SYNTAX

Remove-PnPStorageEntity -Key <String> [-Scope <StorageEntityScope>] [-Connection <PnPConnection>]

DESCRIPTION

Allows to remove Storage Entities / Farm Properties from either the tenant scoped app catalog or the current site collection app catalog.

EXAMPLES

EXAMPLE 1

Remove-PnPStorageEntity -Key MyKey

Removes an existing storage entity / farm property.

EXAMPLE 2

Remove-PnPStorageEntity -Key MyKey -Scope Site

Removes an existing storage entity from the current site collection.

PARAMETERS

-Connection

Optional connection to be used by the cmdlet. Retrieve the value for this parameter by either specifying -ReturnConnection on Connect-PnPOnline or by executing Get-PnPConnection.

Type: PnPConnection
Parameter Sets: (All)

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-Key

The key of the value to remove.

Type: String
Parameter Sets: (All)

Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-Scope

Defines the scope of the storage entity. Defaults to Tenant.

Type: StorageEntityScope
Parameter Sets: (All)
Accepted values: Site, Tenant

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

Microsoft 365 Patterns and Practices