def clear(self):
        """ removes all documents in this collection """
        collection = self.ds.connection(COLLECTION_MANAGED_PROCESS)
        return collection.delete_many(filter={})
def clear ( self ) : collection = self . ds . connection ( COLLECTION_MANAGED_PROCESS ) return collection . delete_many ( filter = { } )
removes all documents in this collection