Remove-ManagedFolder (RTM)
Microsoft Exchange Server 2007 will reach end of support on April 11, 2017. To stay supported, you will need to upgrade. For more information, see Resources to help you upgrade your Office 2007 servers and clients.
Applies to: Exchange Server 2007
Use the Remove-ManagedFolder cmdlet to delete managed folders from the Active Directory directory service.
Syntax
Remove-ManagedFolder -Identity <ELCFolderIdParameter> [-DomainController <Fqdn>]
Detailed Description
The Remove-ManagedFolder cmdlet accepts a Managed Folder object or an identity string as pipelined input.
To run the Remove-ManagedFolder cmdlet, the account you use must be delegated the following:
- Exchange Organization Administrator role
For more information about permissions, delegating roles, and the rights that are required to administer Exchange Server 2007, see Permission Considerations.
Parameters
Parameter | Required | Type | Description |
---|---|---|---|
Identity |
Required |
Microsoft.Exchange.Configuration.Tasks.ELCFolderIdParameter |
The Identity parameter specifies the name, distinguished name, or GUID of the managed folder. |
DomainController |
Optional |
Microsoft.Exchange.Data.Fqdn |
To specify the fully qualified domain name (FQDN) of the domain controller that retrieves data from the Active Directory directory service, include the DomainController parameter in the command. |
Input Types
Return Types
This command does not return a value.
Errors
Error | Description |
---|---|
Exceptions
Exceptions | Description |
---|---|
Example
In this example, the Remove-ManagedFolder command is used to delete the managed folder named MyManagedFolder from Active Directory.
Remove-ManagedFolder MyManagedFolder