apoc.periodic.truncate

Details

Syntax

apoc.periodic.truncate([ config ])

Description

Removes all entities (and optionally indexes and constraints) from the database using the apoc.periodic.iterate procedure.

Input arguments

Name

Type

Description

config

MAP

{ dropSchema = true :: BOOLEAN, batchSize = 10000 :: INTEGER, parallel = false :: BOOLEAN, retries = 0 :: INTEGER, batchMode = ""BATCH"" :: STRING, params = {} :: MAP, concurrency :: INTEGER, failedParams = -1 :: INTEGER, planner = ""DEFAULT"" :: [DEFAULT, COST, IDP, DP] }. The default is: {}.

Config parameters

The procedure supports the same configurations as the apoc.periodic.iterate procedure.

Moreover, it supports the following config parameters:

Config parameters
Name Type Default Description

dropSchema

BOOLEAN

true

drops all indexes and constraints