lib/services/metadata.js
function unpublishPage(uri, user) {
  const update = {
    published: false,
    publishTime: null,
    url: '',
    history: [{ action: 'unpublish', timestamp: new Date().toISOString(), users: [userOrRobot(user)] }]
  };

  return changeMetaState(uri, update);
}
function unpublishPage(uri, user) {
  const update = {
    published: false,
    publishTime: null,
    url: '',
    history: [{ action: 'unpublish', timestamp: new Date().toISOString(), users: [userOrRobot(user)] }]
  };

  return changeMetaState(uri, update);
}
function unpublishPage ( uri , user ) { const update = { published : false , publishTime : null , url : '' , history : [ { action : 'unpublish' , timestamp : new Date ( ) . toISOString ( ) , users : [ userOrRobot ( user ) ] } ] } ; return changeMetaState ( uri , update ) ; }
Update the page meta on unpublish

@param {String} uri
@param {Object} user
@returns {Promise}
Update the page meta on unpublish