How to delete old .part files

Hi, today I found out that on my filesystem I have lots of old (three year old) Filename.ocTransfer.part files. It seems that this was fro the time when I was setting up my Nextcloud again and all my uses were uploading files using the Desktop App.

How can I delete them?

I already run a occ:files cleanup but they did not go away.

So my questions are:
How can I delete them? Just a normal delete command on filesystem area? Or do I need to delete them from the database as well?

I am using NC 31.0.7 on Debian 12.

yes, that will suffice followed by occ files:scan --all

OK, then I have one more question:

I remember that in the past it was said when running a occ files:scan all existing shares will be obsolete. I am having lots of shared files and folders - do the remain when running a occ files scan or are they getting lost?

That is definitely not the case.

If something like that were to happen after running occ files:scan --all, there must definitely have been other issues in play there. Under normal circumstances, such a scan should be completely safe to perform.

specify the path to be scanned files:scan --path="/alice/files/Documents possibly you can specify files to scan '*.part'… but I’m not 100% sure.

see usage: occ files:scan --help

So I was now just checking the database:

SELECT *
FROM `oc_filecache`
where name like '%.part'
LIMIT 50

does not reply any files, so the .part files are not indexed and can be safely removed without need to scan the complete datafolder, right?

assuming this is correct… it appears .part files are temporary download chunk files that have no DB reference