For application NAME leave SIZE crashlogs or remove all crashlogs with timestamp > TIMESTAMP.

def crashlog_clean(name, timestamp, size, **kwargs):
    """
    For application NAME leave SIZE crashlogs or remove all crashlogs with timestamp > TIMESTAMP.
    """
    ctx = Context(**kwargs)
    ctx.execute_action('crashlog:clean', **{
        'storage': ctx.repo.create_secure_service('storage'),
        'name': name,
        'size': size,
        'timestamp': timestamp,
    })