<ul dir="auto">
<li>Neo4j version: 3.1.2</li>
<li>Operating system: Ubuntu 16.04</li>
<li>API/Driver: Cypher</li>
</ul>
<p dir="auto">Hey guys<br>
I've been exporting some data from ArangoDB to test out in Neo4J. I've imported a bunch of member nodes, and attribute nodes. Members nodes are connected (relationships) to several Attributes nodes.</p>
<ul dir="auto">
<li>Member nodes only have the one property</li>
<li>Attribute nodes only have the one property</li>
<li>the relationships have no properties</li>
</ul>
<p dir="auto">I executed the following command to add the relationships between the Member and Attribute nodes, but  what I didn't realize was that there were some duplicates in the Attributes nodes.</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="using periodic commit
load csv from &quot;file:///is.csv&quot; as row with row limit 1
match (m:Member {username:row[0]}), (a:Attribute {name:row[1]})
create (m)-[:IS]-&gt;(a)
"><pre class="notranslate"><code class="notranslate">using periodic commit
load csv from "file:///is.csv" as row with row limit 1
match (m:Member {username:row[0]}), (a:Attribute {name:row[1]})
create (m)-[:IS]-&gt;(a)

</code></pre></div>
<p dir="auto">When I realized that I had duplicates I decided to delete the Attribute nodes and the relationships, and then try again.</p>
<p dir="auto">Now as I recall, I executed the following query:<br>
<code class="notranslate">match (m)-[r]-&gt;(a) delete r,a</code><br>
After a few minutes, it said the query completed, but now I realize it didn't delete everything - it left about <strong>12,000</strong> relationships from what I remember and I don't remember how many Attribute nodes were left over.</p>
<p dir="auto">I tried it again:<br>
Relationships increased to <strong>20714</strong> (increased by at least 8,000)<br>
Duration: 20 minutes</p>
<p dir="auto">I tried to delete just 1 relationship:<br>
<code class="notranslate">match (m)-[r:IS]-&gt;(a:Attribute) with r limit 1 delete r</code><br>
First attempt<br>
Relationships increased to <strong>30949</strong> (increased by 9780), Duration: 36 minutes</p>
<p dir="auto">Second attempt<br>
Relationships increased to <strong>41281</strong> (increased by 10787), Duration: over 40 minutes</p>
<p dir="auto">I tried a detach delete:<br>
<code class="notranslate">match (a:Attribute {name:"isSmoker"}) detach delete a</code><br>
The result in the UI says - "Deleted 12 nodes, deleted 1560 relationships, statement completed in 2852664 ms."<br>
The 12 nodes were deleted, but the relationships were actually increased to <strong>49933</strong>.</p>
<p dir="auto">What other info do you need to diagnose?</p>
<h2 dir="auto">Guidelines</h2>
<p dir="auto">Please note that GitHub issues are only meant for bug reports/feature requests.<br>
If you have questions on how to use Neo4j, please ask on <a href="https://stackoverflow.com/questions/tagged/neo4j" rel="nofollow">StackOverflow</a> instead of creating an issue here.</p>
<p dir="auto">Before creating a new issue, please check whether someone else has raised the same issue. You may be able to add context to that issue instead of duplicating the report. However, each issue should also only be focussed on a <em>single</em> problem, so do not describe new problems within an existing thread - these are very hard to track and manage, and your problem may be ignored. Finally, do not append comments to closed issues; if the same problem re-occurs, open a new issue, and include a link to the old one.</p>
<p dir="auto">To help us understand your issue, please specify important details, primarily:</p>
<ul dir="auto">
<li>
<p dir="auto">Neo4j version: 4.4.0</p>
</li>
<li>
<p dir="auto">Operating system: Linux/Ubuntu</p>
</li>
<li>
<p dir="auto">Expected behavior<br>
Users should be able to all all <strong>apoc</strong> procedures when <strong>apoc</strong> is installed</p>
</li>
<li>
<p dir="auto">Actual behavior<br>
No apoc.map.* procedures are found</p>
</li>
</ul>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/395419/148832935-5bea023b-283b-49b6-b10f-5661c708c628.png"><img src="https://user-images.githubusercontent.com/395419/148832935-5bea023b-283b-49b6-b10f-5661c708c628.png" alt="Screenshot from 2022-01-10 20-13-43" style="max-width: 100%;"></a></p>