code: def test_destroy(tmp_dir, dvc, run_copy):
      dvc.config["cache"]["type"] = ["symlink"]
      dvc.cache = CacheManager(dvc)
  
      tmp_dir.dvc_gen("file", "text")
      tmp_dir.dvc_gen(
          {"dir": {"file": "lorem", "subdir/file": "ipsum"}}
      )
  
      run_copy("file", "file2", name="copy-file-file2")
      run_copy("file2", "file3", name="copy-file2-file3")
      run_copy("file3", "file4", name="copy-file3-file4")
  
      dvc.destroy()
  
      # Remove all the files related to DVC
      for path in [
          ".dvc",
          ".dvcignore",
          "file.dvc",
          "dir.dvc",
          PROJECT_FILE,
          LOCK_FILE,
      ]:
          assert not (tmp_dir / path).exists()
  
      # Leave the rest of the files
      for path in [
          "file",
          "file2",
          "file3",
          "file4",
          "dir/file",
          "dir/subdir/file",
      ]:
          assert (tmp_dir / path).is_file()
  
      # Make sure that data was unprotected after `destroy`
      for path in [
          "file",
          "file2",
          "file3",
          "file4",
          "dir",
          "dir/file",
          "dir/subdir",
          "dir/subdir/file",
      ]:
          assert not system.is_symlink(tmp_dir / path)
  
file_path: dvc/tests/func/test_repo.py
imports: import os
  from dvc.cachemgr import CacheManager
  from dvc.dvcfile import LOCK_FILE, PROJECT_FILE
  from dvc.fs import system
  from dvc.repo import Repo
  from dvc.scm import Git
label_desc: Use image node_id 2 for calling a global function with example usage: test_destroy(tmp_dir, dvc, run_copy) without return types