viewer/vueapp/src/components/users/UserService.js
/**
   * Deletes a user's specified view
   * @param {Object} view       The view object to be deleted
   * @param {string} viewName   The name of the view to delete
   * @param {string} userId     The unique identifier for a user
   *                            (only required if not the current user)
   * @returns {Promise} Promise A promise object that signals the completion
   *                            or rejection of the request.
   */
Deletes a user's specified view
@param {Object} view       The view object to be deleted
@param {string} viewName   The name of the view to delete
@param {string} userId     The unique identifier for a user
(only required if not the current user)
@returns {Promise} Promise A promise object that signals the completion
or rejection of the request.
Deletes a user ' s specified view @param { Object } view The view object to be deleted @param { string } viewName The name of the view to delete @param { string } userId The unique identifier for a user ( only required if not the current user ) @returns { Promise } Promise A promise object that signals the completion or rejection of the request .
deleteView (view, viewName, userId) {
    return new Promise((resolve, reject) => {
      const options = {
        url: `api/user/view/${viewName}`,
        method: 'DELETE',
        data: view,
        params: { userId: userId }
      };
      Vue.axios(options)
        .then((response) => {
          resolve(response.data);
        }, (error) => {
          reject(error);
        });
    });
  }
deleteView ( view , viewName , userId ) { return new Promise ( ( resolve , reject ) => { const options = { url : ` ${ viewName } ` , method : 'DELETE' , data : view , params : { userId : userId } } ; Vue . axios ( options ) . then ( ( response ) => { resolve ( response . data ) ; } , ( error ) => { reject ( error ) ; } ) ; } ) ; }
Deletes a user's specified view
 @param {Object} view       The view object to be deleted
 @param {string} viewName   The name of the view to delete
 @param {string} userId     The unique identifier for a user
                            (only required if not the current user)
 @returns {Promise} Promise A promise object that signals the completion
                            or rejection of the request.
Deletes a user ' s specified view @param { Object } view The view object to be deleted @param { string } viewName The name of the view to delete @param { string } userId The unique identifier for a user ( only required if not the current user ) @returns { Promise } Promise A promise object that signals the completion or rejection of the request .