Remove-SPProjectWebInstance

 

Applies to: SharePoint Server 2010, Project Server 2010

Topic Last Modified: 2011-07-11

Deletes an instance of Microsoft Project Web App (PWA).

Syntax

Remove-SPProjectWebInstance -Url <String> [-AssignmentCollection <SPAssignmentCollection>] [-KeepSiteCollection <SwitchParameter>] [-Wait <SwitchParameter>]

Detailed Description

The Remove-SPProjectWebInstance cmdlet deletes an instance of Project Web App.

Parameters

Parameter Required Type Description

Url

Required

System.String

Specifies the URL of the Project Web App (PWA) instance to delete.

The type must be a valid URL, in the form http://server_name/PWA_instance.

AssignmentCollection

Optional

Microsoft.SharePoint.PowerShell.SPAssignmentCollection

Manages objects for the purpose of proper disposal. Use of objects, such as SPWeb or SPSite, can use large amounts of memory and use of these objects in Windows PowerShell scripts requires proper memory management. Using the SPAssignment object, you can assign objects to a variable and dispose of the objects after they are needed to free up memory. When SPWeb, SPSite, or SPSiteAdministration objects are used, the objects are automatically disposed of if an assignment collection or the Global parameter is not used.

Note

When the Global parameter is used, all objects are contained in the global store. If objects are not immediately used, or disposed of by using the Stop-SPAssignment command, an out-of-memory scenario can occur.

KeepSiteCollection

Optional

System.Management.Automation.SwitchParameter

Specifies that the site collection is retained when the PWA instance is removed.

Wait

Optional

System.Management.Automation.SwitchParameter

Specifies when the delete job is performed.

Any one of the following values:

True- the delete job is performed

False - the delete job is queued.

The default value is False.

Input Types

Return Types

Example

--------------------EXAMPLE-----------------

Remove-SPProjectWebInstance -Url http://WFESERVER/pwa

This example removes the specified PWA instance.