[Solved] Update database after delete

Hello,

I just noticed that after if I delete tracks (or albums) with the cli interface, the files gets deleted (which of course is what if wanted), but the tracks are still in the sqlite database.
Is this a normal behavior ? Is there any way to delete them from the sqlite database too?

Many thanks.
Config :

directory: /music
library: /config/musiclibrary.db
threaded: yes
original_date: no
per_disc_numbering: yes


import:
    write: yes

    copy: yes
    move: no

    # Always require confirmation
    timid: no

    incremental: yes
    resume: ask
    log: /config/beet.log

replace:
    '[\\/]': ''
    '^\.': ''
    '[\x00-\x1f]': ''
    '[<>:"\?\*\|]': ''
    '\.$': ''
    '\s+$': ''
    '^\s+': ''

item_fields:
    u_disc: |
        if disctotal > 1:
            return "Disc {:02}".format(disc)
        return ""
album_fields:
    u_format: |
        item = items[0]
        if item.format == "FLAC" and item.bitdepth == 24:
            return "FLAC24"
        return item.format
    u_version: |
        item = items[0]
        cat = item.catalognum
        year = item.original_year
        country = item.country
        media = item.media
        if cat == "[none]":
            cat = ""
        if "Vinyl" in media:
            media = "Vinyl"
        elif "Digital Media" in media:
            media = "WEB"
        list = []
        for i in [cat, year, country, media]:
            if i != "" and i != 0:
                if type(i) != str:
                    i = str(i)
                list.append(i)
        return " ".join(list)
paths:
    default: %first{$albumartist}/$album ($year) %if{$u_version,{$u_version$} }[$u_format]/%if{$u_disc,$u_disc/}$track - $title
    comp: Compilations/$album ($year) %if{$u_version,{$u_version$} }[$u_format]/%if{$u_disc,$u_disc/}$track - $title

# Plugins --------------------------------------------------------------------
plugins: [
    discogs,
    inline,
    convert,
    fetchart,
    missing,
    lastgenre,
    scrub,
    ftintitle,
    web,
    bandcamp,
    extrafiles
]


# Plugins Config -------------------------------------------------------------
convert:
    auto: no
    dest: /MP3
    ffmpeg: /usr/bin/ffmpeg
    format: mp3
    max_bitrate: 320
    embed: yes

lastgenre:
    auto: yes
    source: album

fetchart:
    auto: yes
    maxwidth: 600
    cautious: true
    cover_names: cover
    enforce_ratio: 10px
    sources: itunes amazon albumart filesystem coverart

scrub:
    auto: yes

ftintitle:
    auto: yes

extrafiles:
    patterns:
        image:
            - '*.[jJ][pP][gG]'
            - '*.[pP][nN][gG]'
            - '*.[jJ][pP][eE][gG]'
        other:
            - '*.[cC][uU][eE]'
            - '*.[lL][oO][gG]'
            - '*.[tT][xX][tT]'
            - '*.[sS][fF][vV]'
            - '*.[mM]3[uU]'
            - '*.[mM]3[uU]8'
            - '*.[nN][fF][oO]'
            - '*.[pP][dD][fF]'
            - '*.[mM][dD]5'
            - '*.[pP][lL][sS]'
            - '*.[aA][cC][cC][uU]*'
        scans:
            - '[sS][cC][aA][nN]*/'
        folders:
            - '[!sS][!cC][!aA][!nN]*/'
    paths:
        image: $albumpath/ORIGINAL - $filename
        scans: $albumpath/Scans

web:
    host: 0.0.0.0
    port: 8337

Hmm; no, it’s not. Can you include a transcript from a CLI interaction showing this happening? Perhaps like this:

$ beet ls <some query>
$ beet rm -d <same query>
$ beet ls <same query again>

Ok I investigated the problem, it seemed tu have been related to my docker config and not to beets at all.

Sorry for this, marked as solved.