Perl FAQ: How do I remove an item from a hash?
Answer: Use the Perl delete function.
The general syntax you need to use is shown here:
delete($hash_name{$key_name});
If you'd like more details and examples, read on...
Perl hash - remove/delete element example
Here's a complete example where I show both how to create and print a Perl hash, and then show how to remove elements from the hash using the Perl delete function: