ws + assign result outside of file delete callback