You’re expecting that the data object will have a method called slice, which is wrong. The slice method only works on arrays that use numerically indexed values.
If you want to remove a property from the object, you can use the delete method.
delete data['success'];
Looking at your data though, I would reorganise it so that it has a separate success and failure object, to contain the data.
Thanks again, Paul. Delete does the job for now. I’m not alone on this and the other want it that way since its easier to generate those error messages. So be it