Google Apps Script API
    Preparing search index...
    interface RevisionsCollection {
        get(
            fileId: string,
            revisionId: string,
        ): GoogleAppsScript.Drive_v3.Drive.V3.Schema.Revision;
        get(
            fileId: string,
            revisionId: string,
            optionalArgs: Record<string, any>,
        ): GoogleAppsScript.Drive_v3.Drive.V3.Schema.Revision;
        list(
            fileId: string,
        ): GoogleAppsScript.Drive_v3.Drive.V3.Schema.RevisionList;
        list(
            fileId: string,
            optionalArgs: Record<string, any>,
        ): GoogleAppsScript.Drive_v3.Drive.V3.Schema.RevisionList;
        remove(fileId: string, revisionId: string): void;
        update(
            resource: GoogleAppsScript.Drive_v3.Drive.V3.Schema.Revision,
            fileId: string,
            revisionId: string,
        ): GoogleAppsScript.Drive_v3.Drive.V3.Schema.Revision;
    }
    Index

    Methods

    • Permanently deletes a file version. You can only delete revisions for files with binary content in Google Drive, like images or videos. Revisions for other files, like Google Docs or Sheets, and the last remaining file version can't be deleted.

      Parameters

      • fileId: string

        The ID of the file.

      • revisionId: string

        The ID of the revision.

      Returns void