Delete subscriptions

You can delete Pub/Sub subscriptions with the Google Cloud console, Google Cloud CLI, client library, or Pub/Sub API.

This document discusses how to delete subscriptions in Pub/Sub.

Before you begin

Required roles and permissions

To get the permission that you need to delete a subscription, ask your administrator to grant you the Pub/Sub Editor (roles/pubsub.editor) IAM role on the subscription. For more information about granting roles, see Manage access to projects, folders, and organizations.

This predefined role contains the pubsub.subscriptions.delete permission, which is required to delete a subscription.

You might also be able to get this permission with custom roles or other predefined roles.

Delete subscriptions

Console

  1. In the Google Cloud console, go to the Subscriptions page.

    Go to Subscriptions