There are two options to delete an element from the library:
only from the database (keeps the file on disk)
from the database and the file on disk
How to delete element(s)
In the Gallery view:
select element(s) you want to delete
go to edit mode
click Delete Element button