Rm558
Rm558

Reputation: 4994

How to drop a relationship type in Neo4j's Cypher

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?

Upvotes: 1

Views: 147

Answers (2)

Rm558
Rm558

Reputation: 4994

+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.

Upvotes: 0

mif
mif

Reputation: 591

Right now only by deleting the db-directory.

Upvotes: 3

Related Questions