Hi,
Hope to find you well,

I have a question about the 'db_flatstore' module in Kamailio. Here's my script for log rotation:

    for f in acc_cdrs_*.log; do
        mv -- "$f" "${f%.log}.temp"
    done
    docker exec -it pcscf kamcmd flatstore.k_rotate
    rm *.temp

I want to know if the kamcmd command is blocking and the files can be removed after that or if I should wait for it to be done before removing the renamed files.

Regards,
Farzaneh