< Back
Remove-GcLog
Post
NAME Remove-GcLog
SYNOPSIS
Removes one or more Stackdriver logs from a project.
SYNTAX
Remove-GcLog [-Project <string>] [-LogName] <string[]> [<CommonParameters>]
DESCRIPTION
Removes one or more StackDrive logs from a project based on the names of the logs. All the entries in the logs
will be deleted (a log have multiple log entries).
PARAMETERS
-Project <string>
The project to check for log entries. If not set via PowerShell parameter processing, will default to the
Cloud SDK's DefaultProject property.
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
-LogName <string[]>
The names of the logs to be removed.
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
System.String[]
The names of the logs to be removed.
OUTPUTS
---------- EXAMPLE 1 ----------
PS C:\\> Remove-GcLog -LogName "test-log"
This command removes "test-log" from the default project.
---------- EXAMPLE 2 ----------
PS C:\\> Remove-GcLog -LogName "test-log" -Project "my-project"
This command removes "test-log" from project "my-project".
---------- EXAMPLE 3 ----------
PS C:\\> Remove-GcLog -LogName "log1", "log2"
This command removes "log1" and "log2" from the default project.
RELATED LINKS
[Log Entries and Logs] (https://cloud.google.com/logging/docs/view/logs_index)
SYNOPSIS
Removes one or more Stackdriver logs from a project.
SYNTAX
Remove-GcLog [-Project <string>] [-LogName] <string[]> [<CommonParameters>]
DESCRIPTION
Removes one or more StackDrive logs from a project based on the names of the logs. All the entries in the logs
will be deleted (a log have multiple log entries).
PARAMETERS
-Project <string>
The project to check for log entries. If not set via PowerShell parameter processing, will default to the
Cloud SDK's DefaultProject property.
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
-LogName <string[]>
The names of the logs to be removed.
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
System.String[]
The names of the logs to be removed.
OUTPUTS
---------- EXAMPLE 1 ----------
PS C:\\> Remove-GcLog -LogName "test-log"
This command removes "test-log" from the default project.
---------- EXAMPLE 2 ----------
PS C:\\> Remove-GcLog -LogName "test-log" -Project "my-project"
This command removes "test-log" from project "my-project".
---------- EXAMPLE 3 ----------
PS C:\\> Remove-GcLog -LogName "log1", "log2"
This command removes "log1" and "log2" from the default project.
RELATED LINKS
[Log Entries and Logs] (https://cloud.google.com/logging/docs/view/logs_index)