Making permanent changes to PackageCache script after deleting Library folder

Hi
Still learning about the PackageCache which works with the Package Manager and is rebuilt every time the Library is deleted.

I normally delete the Library folder several times while working on a project, and always just before archiving it.

However I also occasionally need to customize scripts that get pulled into the PackageCache in the Library.

How to make these changes permanent, so that even when my Library is deleted, my custom changes are saved?

Let’s back up a second and can you explain exactly what you’re trying to do here?

I’ve made a custom change to ARPointCloudManager.cs adding a public method to enable deletion of point data.
Is there another way to accomplish this?

public void DestroyPointCloud()
        {
            if (pointCloud != null)
            {
                Destroy(pointCloud.gameObject);
                pointCloud = null;
            }

        }