Skip to content

Users Drive Cleanup

Ross Scroggs edited this page Jun 24, 2021 · 19 revisions

Users - Drive - Cleanup

API documentation

Definitions

<SharedDriveID> ::= <String>
<SharedDriveName> ::= <String>
<SharedDriveEntity> ::=
        <SharedDriveID>|(teamdriveid <SharedDriveID>)|(teamdriveid:<SharedDriveID>)|
        (teamdrive <SharedDriveName>)|(teamdrive:<SharedDriveName>)

Display empty folders on My Drive

gam <UserTypeEntity> print emptydrivefolders [todrive <ToDriveAttribute>*]

Delete empty folders on My Drive

gam <UserTypeEntity> delete emptydrivefolders

Empty the trash on My Drive

gam <UserTypeEntity> empty drivetrash

Display empty folders on a Shared Drive

gam <UserTypeEntity> print emptydrivefolders [todrive <ToDriveAttribute>*]
        select <SharedDriveEntity>

Delete empty folders on a Shared Drive

gam <UserTypeEntity> delete emptydrivefolders <SharedDriveEntity>

Empty the trash on a Shared Drive

gam <UserTypeEntity> empty drivetrash <SharedDriveEntity>

Update History

Installation

Configuration

Notes and Information

Definitions

Command Processing

Collections

Client Access

Special Service Account Access

Service Account Access

Clone this wiki locally