Edit

Share via


Clear-FASTSearchContentCollection

Clears the content of a Microsoft FAST Search Server 2010 for SharePoint content collection.

Syntax

Default (Default)

Clear-FASTSearchContentCollection
    [-Name] <String>
    [-Confirm]
    [-Force]
    [-WhatIf]
    [<CommonParameters>]

Description

This cmdlet deletes from the index all items that are associated with the specified collection without removing the collection.

For permissions and the most current information about FAST Search Server 2010 for SharePoint cmdlets, see the online documentation, (https://go.microsoft.com/fwlink/?LinkId=163227).

Examples

EXAMPLE 1 (FAST Server for SharePoint 2010)

C:\PS>Clear-FASTSearchContentCollection -Name newscollection

This example clears the content of the "newscollection" content collection.

EXAMPLE 2 (FAST Server for SharePoint 2010)

C:\PS>Clear-FASTSearchContentCollection -Name newscollection -Force

This example clears the content of the "newscollection" content collection. The user does not have to confirm the operation.

Parameters

-Confirm

Applicable: FAST Server for SharePoint 2010

Activates user prompting to confirm the operation. If set, prompting is activated.

If Confirm is false (-Confirm:$false), you will not be prompted.

In cases where Confirm is not specified, the cmdlet will prompt if the $ConfirmPreference shell variable is equal to or greater than the ConfirmImpact setting of the cmdlet (HIGH).

Parameter properties

Type:SwitchParameter
Default value:None
Supports wildcards:False
DontShow:False
Aliases:cf

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-Force

Applicable: FAST Server for SharePoint 2010

Overrides any user prompting settings so the user is not asked to confirm the operation.

Parameter properties

Type:SwitchParameter
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-Name

Applicable: FAST Server for SharePoint 2010

The name of the content collection to clear.

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:1
Mandatory:True
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-WhatIf

Applicable: FAST Server for SharePoint 2010

Displays a message that describes the effect of the command instead of executing the command. For more information, type the following command: get-help about_commonparameters

Parameter properties

Type:SwitchParameter
Default value:None
Supports wildcards:False
DontShow:False
Aliases:wi

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.