Keep in mind that it can be risky to clean up and use N1QL queries afterwards in Community v4.0. My integration tests failed because some documents were not indexed after dozens of runs (even after 30 minutes). Itβs safer to just delete documents.
source share