On this page

Remove-Space

SYNOPSIS

Remove an existing Confluence space.

SYNTAX

Remove-ConfluenceSpace -ApiUri <Uri> -Credential <PSCredential> [-SpaceKey] <String[]> [-Force] [-WhatIf] [-Confirm]

DESCRIPTION

Delete an existing Confluence space, including child content.

Note: The space is deleted in a long running task, so the space cannot be considered deleted when this resource returns.

EXAMPLES

————————– EXAMPLE 1 ————————–

Remove-ConfluenceSpace -SpaceKey ABC -WhatIf

Simulates the deletion of wiki space ABC and all child content. -WhatIf parameter prevents removal of content.

————————– EXAMPLE 2 ————————–

Remove-ConfluenceSpace -SpaceKey XYZ -Force

Delete wiki space XYZ and all child content below it.

By default, you will be prompted to confirm removal. (“Are you sure? Y/N”) -Force suppresses all confirmation prompts and carries out the deletion.

PARAMETERS

-ApiUri

The URi of the API interface. Value can be set persistently with Set-ConfluenceInfo.

Type: Uri
Parameter Sets: (All)
Aliases:

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

-Credential

Confluence’s credentials for authentication. Value can be set persistently with Set-ConfluenceInfo.

Type: PSCredential
Parameter Sets: (All)
Aliases:

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

-Certificate

Certificate for authentication.

Type: X509Certificate
Parameter Sets: (All)
Aliases:

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

-SpaceKey

The key (short code) of the space to delete. Accepts multiple keys via pipeline input.

Type: String[]
Parameter Sets: (All)
Aliases: Key

Required: True
Position: 1
Default value: None
Accept pipeline input: True (ByPropertyName, ByValue)
Accept wildcard characters: False

-Force

Forces the deletion of the space without prompting for confirmation.

Type: SwitchParameter
Parameter Sets: (All)
Aliases:

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

-WhatIf

Shows what would happen if the cmdlet runs. The cmdlet is not run.

Type: SwitchParameter
Parameter Sets: (All)
Aliases: wi

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

-Confirm

Prompts you for confirmation before running the cmdlet.

Type: SwitchParameter
Parameter Sets: (All)
Aliases: cf

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

INPUTS

OUTPUTS

System.Boolean

NOTES

https://github.com/AtlassianPS/ConfluencePS