'Delete seen entries'

@api.response(200, u'Successfully    delete    all    entries', model=base_message_schema)
@api.doc(parser=seen_base_parser, description=u'Delete    seen    entries')
def delete(self, session):

    args = seen_base_parser.parse_args()
    value = args[u'value']
    local = args[u'local']
    if value:
        value = unquote(value)
        value = ((u'%' + value) + u'%')
    seen_entries_list = seen.search(value=value, status=local, session=session)
    deleted = 0
    for se in seen_entries_list:
        forget_by_id(se.id, session=session)
        deleted += 1
    return success_response((u'successfully    deleted    %i    entries' % deleted))
