CLEAR SPACE MAP DATA

Ecosistema completo para organización y gestión de contenido con interfaces espaciales

🧹 Clear Space Map Data

Problem

Space Map shows old/test universes (like "Machin Uni 1") that can't be deleted because it's using separate Flash persistence storage.

Quick Fix - Clear from Browser Console

Open browser DevTools console (F12) and run:

// Clear Space Map Flash persistence
localStorage.removeItem('flash:space-map-universes');
localStorage.removeItem('flash:space-map-pages');
localStorage.removeItem('flash:space-map-galaxies');

// Then reload the page
location.reload();

Alternative - Clear from IndexedDB

If using IndexedDB storage:

// Open IndexedDB
const request = indexedDB.open('gograb-space');
request.onsuccess = (event) => {
  const db = event.target.result;
  
  // Clear the object stores
  const tx = db.transaction(['flash-state'], 'readwrite');
  const store = tx.objectStore('flash-state');
  
  store.delete('space-map-universes');
  store.delete('space-map-pages');
  store.delete('space-map-galaxies');
  
  tx.oncomplete = () => {
    console.log('✅ Space Map data cleared!');
    location.reload();
  };
};

Permanent Solution

The Space Map needs to be migrated to use the core UnifiedDataService from @libs-foundational/core-angular instead of its own local Flash persistence.

This is tracked in the integration plan.