cancel
Showing results for 
Search instead for 
Did you mean: 

Head's Up! These forums are read-only. All users and content have migrated. Please join us at community.neo4j.com.

Delete Node my esitcing Node labes

Hi ,

I can see still my node labels even after deletion of my existing nodes please help someone please .refer attched screenshot  how to clear all these node 

simsree9_0-1657695511999.png

 

 

3 REPLIES 3

Cobra
Ninja
Ninja

Hello @simsree9 🙂

It means you have constraints or indexes, you can see them with SHOW INDEXES and SHOW CONSTRAINTS. Here are the queries if you want to delete them:

 

// Drop an index
DROP INDEX constraint_name IF EXISTS
// Drop a constraint
DROP CONSTRAINT constraint_name IF EXISTS
// You can also use APOC to drop all indexes and constraints in one query
CALL apoc.schema.assert({}, {}, true);

 

Regards,
Cobra

I didn't create any indexes & constraints , please share the steps to reset all node labels   

Look at my previous post, you have all the queries... You can also use this query in the system database:

// Reset the whole database
CREATE OR REPLACE DATABASE database_name
Nodes 2022
Nodes
NODES 2022, Neo4j Online Education Summit

All the sessions of the conference are now available online