javascript 2016-11-13

you are referencing prop property itself instead of that one which has name stored in prop parameter

try delete obj[prop]