execute(graphics, id) {
    return new Promise((resolve, reject) => {
      this.undoData.objects = graphics.removeObjectById(id);
      if (this.undoData.objects.length) {
        resolve();
      } else {
        reject(rejectMessages.noObject);
      }
    });
  }
Remove an object
@param {Graphics} graphics - Graphics instance
@param {number} id - object id
@returns {Promise}