< Back
Remove-GcpsTopic
Post
NAME Remove-GcpsTopic
SYNOPSIS
Removes Google Cloud PubSub topics.
SYNTAX
Remove-GcpsTopic [-Project <string>] [-Topic] <string[]> [<CommonParameters>]
DESCRIPTION
Removes one or more Gooogle Cloud PubSub topics. Will raise errors if the topics do not exist. The cmdlet will
delete the topics in the default project if -Project is not used.
PARAMETERS
-Project <string>
The project to remove the topics in. 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
-Topic <string[]>
The names of the topics to be removed.
Required? true
Position? 0
Default value
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters? false
-Name <string[]>
The names of the topics to be removed.
This is an alias of the Topic parameter.
Required? true
Position? 0
Default value
Accept pipeline input? true (ByPropertyName)
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 topics to be removed.
OUTPUTS
---------- EXAMPLE 1 ----------
PS C:\\> Remove-GcpsTopic -Topic "my-topic"
This command removes topic "my-topic" in the default project.
---------- EXAMPLE 2 ----------
PS C:\\> Remove-GcpsTopic -Topic "topic1", "topic2" -Project "my-project"
This command removes 2 topics ("topic1" and "topic2") in the project "my-project".
RELATED LINKS
[Deleting a Topic] (https://cloud.google.com/pubsub/docs/publisher#delete)
SYNOPSIS
Removes Google Cloud PubSub topics.
SYNTAX
Remove-GcpsTopic [-Project <string>] [-Topic] <string[]> [<CommonParameters>]
DESCRIPTION
Removes one or more Gooogle Cloud PubSub topics. Will raise errors if the topics do not exist. The cmdlet will
delete the topics in the default project if -Project is not used.
PARAMETERS
-Project <string>
The project to remove the topics in. 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
-Topic <string[]>
The names of the topics to be removed.
Required? true
Position? 0
Default value
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters? false
-Name <string[]>
The names of the topics to be removed.
This is an alias of the Topic parameter.
Required? true
Position? 0
Default value
Accept pipeline input? true (ByPropertyName)
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 topics to be removed.
OUTPUTS
---------- EXAMPLE 1 ----------
PS C:\\> Remove-GcpsTopic -Topic "my-topic"
This command removes topic "my-topic" in the default project.
---------- EXAMPLE 2 ----------
PS C:\\> Remove-GcpsTopic -Topic "topic1", "topic2" -Project "my-project"
This command removes 2 topics ("topic1" and "topic2") in the project "my-project".
RELATED LINKS
[Deleting a Topic] (https://cloud.google.com/pubsub/docs/publisher#delete)