cancel
Showing results for 
Search instead for 
Did you mean: 

Join the community at Nodes 2022, our free virtual event on November 16 - 17.

Delete Node my esitcing Node labes

simsree9
Node

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

simsree9
Node

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 - November 16 - 17, 2022.


Free NODES Training Series


October 19th -

Intro to Neo4j


October 20th -

Healthcare Analytics Using Neo4j


October 25th -

Handling Neo4j data with Apache Hop


October 26th -

Blazing Fast Graphs: Hands-on with Apache Arrow and Neo4j


November 2nd -

Graph EDA Using the Neo4j GDS Client