def clear_timeline_contents(pipeline, timeline_key):
 truncate_timeline(pipeline, (timeline_key,), (0, timeline_key))
 truncate_timeline(pipeline, (make_digest_key(timeline_key),), (0, timeline_key))
 pipeline.delete(make_last_processed_timestamp_key(timeline_key))

def clear_timeline_contents ( pipeline , timeline_key ) : truncate_timeline ( pipeline , ( timeline_key , ) , ( 0 , timeline_key ) ) truncate_timeline ( pipeline , ( make_digest_key ( timeline_key ) , ) , ( 0 , timeline_key ) ) pipeline . delete ( make_last_processed_timestamp_key ( timeline_key ) )
removes all keys associated with a timeline key .