Neo4j - Drop a Constraint using Cypher
You can drop a constraint using the DROP CONSTRAINT
statement. This will remove the constraint from the database, as well as its associated index.
So, to drop our previously created constraint (and its associated index), we can use the following statement:
When the statement succeeds,the following message is displayed:
View the Schema
You can now use the :schema
command to verify that the applicable constraint (and its associated index) has been removed from the schema.
Simply type this:
You will see that the index is no longer in the schema: