Merge #700: deleteRemoteTrees should return a promise