BIOMASS-2978 fix delete function: return 404 error when object not found & confirm delete filewhen found