2

In powershell does "del variable:\" delete the variable from memory or just moves a point? I'm not too familiar with powershell memory management. Is there some place I could read up on it?

1 Answer 1

3

It just releases a reference (pointer), but you can force garbage collection with [System.GC]::Collect().

Steven Murawski has a great blog post about this.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.