When deleting an element, you will see a window prompt asking you if you really want to delete the associated file:
The deleted element will be added in the trash after deleting the element.
When you remove the element, the associated file will immediately be deleted on the file system after you confirm the prompt.