< Back

Remove-GcSqlBackupRun

Mon Jan 13, 2020 11:45 pm

NAME Remove-GcSqlBackupRun



SYNOPSIS

Deletes a specified backup from a Cloud SQL instance.





SYNTAX

Remove-GcSqlBackupRun [-Project <string>] [-Instance] <string> [-Id] <long> [<CommonParameters>]



Remove-GcSqlBackupRun [-Backup] <BackupRun> [<CommonParameters>]





DESCRIPTION

Deletes a specified backup from a Cloud SQL instance.





PARAMETERS

-Project <string>

Name of the project. Defaults to the Cloud SDK configuration for properties if not specified.



Required? false

Position? named

Default value

Accept pipeline input? false

Accept wildcard characters? false



-Instance <string>

Cloud SQL instance name.



Required? true

Position? 0

Default value

Accept pipeline input? false

Accept wildcard characters? false



-Id <long>

The ID of the Backup Run we want to delete



Required? true

Position? 1

Default value 0

Accept pipeline input? false

Accept wildcard characters? false



-Backup <BackupRun>

The BackupRun that describes the backup we want to delete.



Required? true

Position? 0

Default value

Accept pipeline input? true (ByValue)

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

Google.Apis.SQLAdmin.v1beta4.Data.BackupRun

The BackupRun that describes the backup we want to delete.





OUTPUTS



---------- EXAMPLE 1 ----------



PS C:\\> Remove-GcSqlBackupRun "myInstance" "1234"



Removes the backup with ID "1234" from the instance "myInstance".



If successful, the command doesn't return anything.

---------- EXAMPLE 2 ----------



PS C:\\> Remove-GcSqlBackupRun $myBackup



Removes the backup identified by the resource $myBackup.



If successful, the command doesn't return anything.



RELATED LINKS

[Managing Backups] (https://cloud.google.com/tools/powershe ... sql/backup)

[Overview of Backups] (https://cloud.google.com/sql/docs/backu ... ry/backups)