apoc.uuid.removeAll
Procedure APOC Full
CALL apoc.uuid.removeAll() yield label, installed, properties | it removes all previously added uuid handlers and returns uuids information. All the existing uuid properties are left as-is
Signature
apoc.uuid.removeAll() :: (label :: STRING?, installed :: BOOLEAN?, properties :: MAP?)
This procedure is not intended to be used in a cluster environment, and may act unpredictably. |
Enable automatic UUIDs
This procedure is part of a set of procedures that handle automatic adding of UUID properties, via the UUID Handler Lifecycle. The UUID handler is a transaction event handler that automatically adds the UUID property to a provided label and for the provided property name.
By default automatic adding of UUIDs is disabled.
We can enable it by setting the following property in apoc.conf
:
apoc.uuid.enabled=true
Usage Examples
We can remove all UUID handler (installed by apoc.uuid.install), by running the following query:
CALL apoc.uuid.removeAll();
label | installed | properties |
---|---|---|
"Person" |
FALSE |
{uuidProperty: "myUUID"} |
If we try to remove UUID handlers when non are installed, the output will indicate that no handlers were removed:
CALL apoc.uuid.removeAll();
label | installed | properties |
---|