Clear-FASTSearchContentCollection

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

Syntax

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

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).

Type:SwitchParameter
Aliases:cf
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False
Applies to:FAST Server for SharePoint 2010

-Force

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

Type:SwitchParameter
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False
Applies to:FAST Server for SharePoint 2010

-Name

The name of the content collection to clear.

Type:String
Position:1
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters:False
Applies to:FAST Server for SharePoint 2010

-WhatIf

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

Type:SwitchParameter
Aliases:wi
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False
Applies to:FAST Server for SharePoint 2010