docs: function del(uri, user, locals) {
    const callHooks = _.get(locals, 'hooks') !== 'false';
  
    return db.get(uri).then(oldPageUri => {
      return db.del(uri).then(() => {
        const prefix = getPrefix(uri),
          site = siteService.getSiteFromPrefix(prefix),
          pageUrl = buf.decode(uri.split('/').pop());
  
        if (!callHooks) {
          return Promise.resolve(oldPageUri);
        }
  
        bus.publish('unpublishPage', { uri: oldPageUri, url: pageUrl, user });
        notifications.notify(site, 'unpublished', { url: pageUrl, uri: oldPageUri });
        return meta.unpublishPage(oldPageUri, user)
          .then(() => oldPageUri);
      });
    });
  }