def delete_collection(committer_id, collection_id, force_deletion=False):
 collection_rights_model = collection_models.CollectionRightsModel.get(collection_id)
 collection_rights_model.delete(committer_id, '', force_deletion=force_deletion)
 collection_model = collection_models.CollectionModel.get(collection_id)
 collection_model.delete(committer_id, feconf.COMMIT_MESSAGE_COLLECTION_DELETED, force_deletion=force_deletion)
 collection_memcache_key = _get_collection_memcache_key(collection_id)
 memcache_services.delete(collection_memcache_key)
 delete_documents_from_search_index([collection_id])
 delete_collection_summary(collection_id)
 activity_services.remove_featured_activity(feconf.ACTIVITY_TYPE_COLLECTION, collection_id)

def delete_collection ( committer_id , collection_id , force_deletion = False ) : collection_rights_model = collection_models . CollectionRightsModel . get ( collection_id ) collection_rights_model . delete ( committer_id , '' , force_deletion = force_deletion ) collection_model = collection_models . CollectionModel . get ( collection_id ) collection_model . delete ( committer_id , feconf . COMMIT_MESSAGE_COLLECTION_DELETED , force_deletion = force_deletion ) collection_memcache_key = _get_collection_memcache_key ( collection_id ) memcache_services . delete ( collection_memcache_key ) delete_documents_from_search_index ( [ collection_id ] ) delete_collection_summary ( collection_id ) activity_services . remove_featured_activity ( feconf . ACTIVITY_TYPE_COLLECTION , collection_id )
deletes the collection with the given collection_id .