1

I am learning Cypher, created a lot new relationships, then deleted. But the relationship types are not "dropped", I can see them through:

http://localhost:7474/db/data/relationship/types

How do I drop relationship types?

Rm558
  • 4,621
  • 3
  • 38
  • 43

2 Answers2

3

Right now only by deleting the db-directory.

mif
  • 581
  • 6
  • 16
0

+1 to mif's answer.

After some study, this is more like switch the Neo4j DB "pointer" to a new directory.

In windows, the default db-directory is

C:\Users\You\Documents\Neo4j\default.graphdb

I created a new directory,

C:\Users\You\Documents\Neo4j\newDB

In Neo4j community window, see this

1. Stop
2. Browse => select/locate to the newDB directory
3. Start

This reminds me of attaching/detaching DB in SQL server. Each directory is a DB, you can keep many DB in OS, seems community version can only have one current DB.

Community
  • 1
  • 1
Rm558
  • 4,621
  • 3
  • 38
  • 43
  • 1
    yep, neo4j keeps labels, property-names and rel-types around in case you just deleted the last of a kind and are inserting new ones in the next second. – Michael Hunger Jan 31 '15 at 12:00