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
Powered by Mintlify
Auto-generate your docs
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")
}