Deleting a set of files from database through a matlab batch

I would like to delete the files generated by an analysis from the database through matlab calls. Is that possible to delete a list of files from matlab?

thanks in advance

You can select the files in the Process1 tab (using the interface or the processes “File > Select …”) and delete them with the process “File > Delete files”.

Otherwise, you can delete the files directly and reload the database (brainstorm3\toolbox\db\db_reload_* functions), but the risk of making mistakes and damaging your database is higher (breaking links, deleting files files that are not supposed to be manipulated…)