# Disruptive error: the \`USE\` command doesn't run correctly

**URL:** <https://community.neo4j.com/t/disruptive-error-the-use-command-doesnt-run-correctly/72959>\
**Category:** Cypher\
**Tags:** browser, operations, neo4j-desktop\
**Created:** [March 11, 2025, 10:06am UTC](https://community.neo4j.com/t/disruptive-error-the-use-command-doesnt-run-correctly/72959 "2025-03-11T10:06:38Z")\
**Posts on this page:** 1\
**Page:** 2

<div class="post-metadata">

**Author:** ![paolodipietro58](https://sea1.discourse-cdn.com/flex021/user_avatar/community.neo4j.com/paolodipietro58/32/21045_2.png) [@paolodipietro58](https://community.neo4j.com/u/paolodipietro58)\
**Post date:** [March 15, 2025, 12:57am UTC](https://community.neo4j.com/t/disruptive-error-the-use-command-doesnt-run-correctly/72959/21 "2025-03-15T00:57:33Z")

</div>

Well, I solved adding OPTIONAL to the MATCH, but your solution  
`CREATE OR REPLACE DATABASE gdpr` looks more effective and elegant.

Chapeau!

..... but it cannot be used in a composite database because I have to recreate the DB then recreate all the aliases ....

So, the winning solution to empty a federated DB is

```auto
CALL {
USE federatednotions.gdpr
optional MATCH (n) DETACH DELETE (n)
} 

```

[Previous page](https://community.neo4j.com/t/disruptive-error-the-use-command-doesnt-run-correctly/72959.md?page=1)
