deleteIntegrationsView (id) {
    return new Promise((resolve, reject) => {
      fetch(`api/view/${id}`, {
        method: 'DELETE',
        headers: setReqHeaders()
      }).then((response) => {
        return response.json();
      }).then((response) => {
        if (response.success) {
          this.getIntegrationViews();
          return resolve(response);
        } else {
          return reject(response.text);
        }
      });
    });
  }
Deletes a view
@param {String} id - The id of the view to delete
@returns {Promise} - The promise that either resovles the request or rejects in error