Method
Parameters
The unique identifier of the topic to delete
Response
Always
"topic"The unique identifier of the deleted topic
Whether the topic was successfully deleted
Learn more about Mintlify
Enter your email to receive updates about new features and product releases.
Remove a topic by ID.
func (s *TopicsSvcImpl) Remove(topicId string) (*RemoveTopicResponse, error)
func (s *TopicsSvcImpl) RemoveWithContext(ctx context.Context, topicId string) (*RemoveTopicResponse, error)
"topic"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")
}