async function destroy(userId, selector) {
  const dashboard = await db.Dashboard.findOne({
    where: {
      // I can destroy dashboard I created or public dashboard
      [Op.or]: [
        {
          user_id: userId,
        },
        {
          visibility: 'public',
        },
      ],
      selector,
    },
  });

  if (dashboard === null) {
    throw new NotFoundError('Dashboard not found');
  }

  await dashboard.destroy();
}
@description Delete a dashboard.
@param {string} userId - The userId querying.
@param {string} selector - The selector.
@example
gladys.dashboard.destroy('main-dashboard');