Manage Topics in Confluent Cloud

An Apache Kafka® topic is a category or feed that stores messages. Producers send messages and write data to topics, and consumers read messages from topics. Topics are grouped by cluster within environments.

You can apply schemas to topics.

This page provides steps to create, edit, and delete Kafka topics in Confluent Cloud using the Cloud Console or the Confluent CLI. You can also list, create or delete topics with REST APIs.

Access Topics

To access topics in Cloud Console:

  1. Sign in to your Confluent Cloud account.
  2. Choose an environment and then a cluster.
  3. From the Navigation menu, choose Topics.
  4. Choose a topic from the displayed list, or click the Create topic button to create a topic.

Important

When private networking is enabled, some Cloud Console components, including topic management, use cluster endpoints that are not publicly reachable. You must configure your network to route requests for these components over the private connection. For details, see Use Confluent Cloud with Private Networking for details.

Create topics

The following steps describe how to create a topic using the Cloud Console or Confluent CLI. For details about configuration settings, see Manage Kafka Cluster Configuration Settings in Confluent Cloud.

Follow these steps to create a topic with the Cloud Console:

  1. Sign in to Confluent Cloud.

  2. If you have more than one environment, select an environment.

  3. Select a cluster.

  4. Select Topics in the navigation menu. The Topics page appears.

  5. If there aren’t any topics created yet, select Create topic. Otherwise, select Add a topic.

    Create topic page Confluent Cloud
  6. Specify your topic details and click Create with defaults. For advanced topic settings, select Customize settings.

    Create topic with defaults page Confluent Cloud

Note

To create a topic with Infinite Storage, on the New Topic page, select Show advanced settings and choose Infinite for Retention time. This sets retention.ms to -1.

Edit topics

When editing topic settings, remember the following:

  • You can edit certain topic configurations after a topic has been created. For a list of editable topic settings, see Configuration Reference for Topics in Confluent Cloud.
  • You cannot access internal Kafka topics, and therefore they cannot be edited. For example, the internal topic __consumer_offsets is not accessible. Also, topics that are not accessible do not count toward partition limits or partition billing charges. Topics created by managed connectors and ksqlDB are accessible.

The following steps describe how to edit a topic using the Cloud Console or Confluent CLI. Not all topic parameters can be edited. For more information, see topic parameters.

Follow these steps to update a topic with the Cloud Console:

  1. Sign in to Confluent Cloud.

  2. If you have more than one environment, select an environment.

  3. Select a cluster.

  4. Select Topics from the navigation menu. The Topics page appears.

  5. Select the topic you want to modify.

    Topics page Confluent Cloud
  6. Select the Configuration tab and Edit settings.

    Edit topic settings access in Confluent Cloud
  7. Make your changes and select Save changes. By default, only the most commonly modified settings are shown. For advanced settings, select Switch to expert mode.

    Important

    Edit topic settings in Confluent Cloud

Delete topics

When you request to delete a topic, the topic is marked for deletion. The topic is not deleted immediately unless it is devoid of data, such as a newly created topic. In the interim, you cannot recreate a topic with the same name as the topic being deleted until the original topic and its data is finished being deleted.

When a topic is deleted, it cannot be restored.

Follow these steps to delete a topic using the Cloud Console:

  1. Sign in to Confluent Cloud.
  2. If you have more than one environment, select an environment.
  3. Select a cluster.
  4. Select Topics in the navigation menu. The Topics page appears.
  5. Choose the topic name link for the topic you want to delete, and then select the Configuration tab.
  6. Select *Delete topic.
  7. Confirm the topic deletion by typing the topic name and select Continue.