@api_config(route_name='api.annotation', request_method='DELETE', permission='delete')
def delete(annotation, request):
    storage.delete_annotation(request, annotation.id)

    # N.B. We publish the original model (including all the original annotation
    # fields) so that queue subscribers have context needed to decide how to
    # process the delete event. For example, the streamer needs to know the
    # target URLs of the deleted annotation in order to know which clients to
    # forward the delete event to.
    _publish_annotation_event(
        request,
        annotation,
        'delete')

    return {'id': annotation.id, 'deleted': True}
Lists IMAP sources assigned for an account.
dataset/ETHPy150Open hypothesis/h/h/api/views.py/delete--crossover with--dataset/ETHPy150Open contextio/Python-ContextIO/contextio/lib/resources/account.py/Account.get_sources