Skip to main content

Method

func (s *TopicsSvcImpl) Remove(topicId string) (*RemoveTopicResponse, error)
func (s *TopicsSvcImpl) RemoveWithContext(ctx context.Context, topicId string) (*RemoveTopicResponse, error)

Parameters

topicId
string
required
The unique identifier of the topic to delete

Response

Object
string
Always "topic"
Id
string
The unique identifier of the deleted topic
Deleted
bool
Whether the topic was successfully deleted

Example

client := resend.NewClient("re_123456789")

response, err := client.Topics.Remove("topic_abc123")
if err != nil {
    panic(err)
}

if response.Deleted {
    fmt.Println("Topic deleted successfully")
}

Build docs developers (and LLMs) love