edgar - modified delete and adds to return proper JSON