cont3xt/vueapp/src/components/services/UserService.js
/**
   * 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
   */
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
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
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);
        }
      });
    });
  }
deleteIntegrationsView ( id ) { return new Promise ( ( resolve , reject ) => { fetch ( ` ${ 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
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