def delete_topic(topic_name):
 pubsub_client = pubsub.Client()
 topic = pubsub_client.topic(topic_name)
 topic.delete()
 print 'Topic {} deleted.'.format(topic.name)

def delete_topic ( topic_name ) : pubsub_client = pubsub . Client ( ) topic = pubsub_client . topic ( topic_name ) topic . delete ( ) print 'Topic {} deleted.' . format ( topic . name )
deletes an existing pub/sub topic .