Orphan graphs in Postgres application page

Dear all,
I have a problem in my LibreNMS installation.
If I open the page for graphs about Postgres app (http://librenms/apps/app=postgres) I have a first row with a question mark and a bunch of broken images:

The images have a link pointing to a device with ID 119 that is no more existent on the LibreNMS inventory.
How can I get rid of these broken/orphan graphs?

Thanks in advance.

Best regards. Lorenzo

I reply to myself.
After some digging in the Librenms DB I found out that the applications are saved into “applications” table.
I removed the offending row and it seems not to have broken the database.
HTH
Regards