Remove-RoyalObject |
![]() |
Remove-RoyalObject
Removes a RoyalObject from its parent (a RoyalFolder or a RoyalDocument)
Remove-RoyalObject [-Object] <RoyalObject> [[-Force] <SwitchParameter>] [<CommonParameters>]
This cmdlet removes a RoyalObject from their parent RoyalFolder/RoyalDocument.
-Object <RoyalObject>
The RoyalObject that is going to be removed. Use the cmdlet Out-RoyalDocument to save it.
Required? true
Position? 0
Default value
Accept pipeline input? true (ByValue, ByPropertyName)
Accept wildcard characters? false
-Force <SwitchParameter>
Using Force remove the RoyalObject immediately (the RoyalObject will not be in the Trashcan).
Required? false
Position? 1
Default value False
Accept pipeline input? true (ByValue, ByPropertyName)
Accept wildcard characters? false
<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer, PipelineVariable, and OutVariable. For more information, see
about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216).
RoyalDocumentLibrary.RoyalObject
The RoyalObject that is going to be removed. Use the cmdlet Out-RoyalDocument to save it.
System.Management.Automation.SwitchParameter
Using Force remove the RoyalObject immediately (the RoyalObject will not be in the Trashcan).
---------- EXAMPLE 1 ----------
Remove-RoyalObject -Object $folder -Force
This command deletes $folder from its parent. Since the parameter -Force is used, the object is NOT kept in the
internal Trashcan.