< Back
Remove-GDriveItem
Post
NAME Remove-GDriveItem
SYNOPSIS
Move GoogleDrive Item to trash or remove it permanently
SYNTAX
Remove-GDriveItem [-ID] <String> -AccessToken <String> [-WhatIf] [-Confirm] [<CommonParameters>]
Remove-GDriveItem [-ID] <String> [-Permanently] [-RevisionID <String>] -AccessToken <String> [-WhatIf] [-Confirm]
[<CommonParameters>]
DESCRIPTION
Move GoogleDrive Item to trash or remove it permanently
PARAMETERS
-ID <String>
File ID to remove
Required? true
Position? 1
Default value
Accept pipeline input? false
Accept wildcard characters? false
-Permanently [<SwitchParameter>]
Permanently remove item. If not set, item moved to trash
Required? false
Position? named
Default value False
Accept pipeline input? false
Accept wildcard characters? false
-RevisionID <String>
File Revision ID to remove (Version history)
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
-AccessToken <String>
Access Token for request
Required? true
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
-WhatIf [<SwitchParameter>]
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
-Confirm [<SwitchParameter>]
Required? false
Position? named
Default value
Accept pipeline input? false
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 (https:/go.microsoft.com/fwlink/?LinkID=113216).
INPUTS
OUTPUTS
Json with item metadata as PSObject
or None if removed permanently
NOTES
Author: Max Kozlov
-------------------------- EXAMPLE 1 --------------------------
PS C:\\># Trash item
Remove-GDriveItem -AccessToken $access_token -ID '0BAjkl4cBDNVpVbB5nGhKQ195aU0'
-------------------------- EXAMPLE 2 --------------------------
PS C:\\># Remove item
Remove-GDriveItem -AccessToken $access_token -ID '0BAjkl4cBDNVpVbB5nGhKQ195aU0' -Permanently
RELATED LINKS
Rename-GDriveItem
Move-GDriveItem
Set-GDriveItemProperty
https://developers.google.com/drive/api ... les/delete
https://developers.google.com/drive/api ... ons/delete
SYNOPSIS
Move GoogleDrive Item to trash or remove it permanently
SYNTAX
Remove-GDriveItem [-ID] <String> -AccessToken <String> [-WhatIf] [-Confirm] [<CommonParameters>]
Remove-GDriveItem [-ID] <String> [-Permanently] [-RevisionID <String>] -AccessToken <String> [-WhatIf] [-Confirm]
[<CommonParameters>]
DESCRIPTION
Move GoogleDrive Item to trash or remove it permanently
PARAMETERS
-ID <String>
File ID to remove
Required? true
Position? 1
Default value
Accept pipeline input? false
Accept wildcard characters? false
-Permanently [<SwitchParameter>]
Permanently remove item. If not set, item moved to trash
Required? false
Position? named
Default value False
Accept pipeline input? false
Accept wildcard characters? false
-RevisionID <String>
File Revision ID to remove (Version history)
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
-AccessToken <String>
Access Token for request
Required? true
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
-WhatIf [<SwitchParameter>]
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
-Confirm [<SwitchParameter>]
Required? false
Position? named
Default value
Accept pipeline input? false
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 (https:/go.microsoft.com/fwlink/?LinkID=113216).
INPUTS
OUTPUTS
Json with item metadata as PSObject
or None if removed permanently
NOTES
Author: Max Kozlov
-------------------------- EXAMPLE 1 --------------------------
PS C:\\># Trash item
Remove-GDriveItem -AccessToken $access_token -ID '0BAjkl4cBDNVpVbB5nGhKQ195aU0'
-------------------------- EXAMPLE 2 --------------------------
PS C:\\># Remove item
Remove-GDriveItem -AccessToken $access_token -ID '0BAjkl4cBDNVpVbB5nGhKQ195aU0' -Permanently
RELATED LINKS
Rename-GDriveItem
Move-GDriveItem
Set-GDriveItemProperty
https://developers.google.com/drive/api ... les/delete
https://developers.google.com/drive/api ... ons/delete