Dictionary.erase() not working? (Test project included)

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Payotz 1
:warning: Old Version Published before Godot 3 was released.

So basically, title. The test project below should explain it more than I can.

Here are some screenshots:

Here’s the sample project:

It’s more or less, what I’m trying to do.

I’m using Godot 2.1.3

:bust_in_silhouette: Reply From: Payotz 1

Thanks to Noshyaar for the answer.