[FEATURE] Only display delete icon if file has no reference

Change-Id: I8f19af800e700b4e4611e9a90399dd15afd92ca0