To permanently remove a file from a device, select the device in the structure tree and delete the file assignment in the Assigned objects area.

If you delete a file in the structure tree under Files, it will be removed from ALL devices to which it was assigned.