Clear-FASTSearchContentCollection
Applies to: SharePoint Server 2010
Clears the content of a Microsoft FAST Search Server 2010 for SharePoint content collection.
Syntax
Clear-FASTSearchContentCollection [-Name] <String> [-Confirm [<SwitchParameter>]] [-Force <SwitchParameter>] [-WhatIf [<SwitchParameter>]]
Detailed Description
This cmdlet deletes from the index all items that are associated with the specified collection without removing the collection.
Note
If you are crawling using the integrated indexing connectors (Content SSA), you should only run this command as part of the procedure as specified in https://technet.microsoft.com/en-us/library/ff191228.aspx.
Parameters
Parameter | Required | Type | Description |
---|---|---|---|
Name |
Required |
System.String |
The name of the content collection to clear. |
Confirm |
Optional |
System.Management.Automation.SwitchParameter |
Activates user prompting to confirm the operation. If set, prompting is activated. If Confirm is false ( 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). |
Force |
Optional |
System.Management.Automation.SwitchParameter |
Overrides any user prompting settings so the user is not asked to confirm the operation. |
WhatIf |
Optional |
System.Management.Automation.SwitchParameter |
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 |
Input Types
Return Types
Example
---------------EXAMPLE 1-----------------
Clear-FASTSearchContentCollection -Name newscollection
This example clears the content of the “newscollection” content collection.
---------------EXAMPLE 2-----------------
Clear-FASTSearchContentCollection -Name newscollection -Force
This example clears the content of the “newscollection” content collection. The user does not have to confirm the operation.
See Also
Reference
New-FASTSearchContentCollection
Remove-FASTSearchContentCollection
Get-FASTSearchContentCollection