Updated delete data to use the instance id instead of the uuid which can be ducplicated - fixes #927