Open In App

ASP Dictionary.RemoveAll Method

Last Updated : 31 Mar, 2021
Improve
Improve
Like Article
Like
Save
Share
Report

The ASP Dictionary.RemoveAll Method is used to remove all the key-value pairs from a Dictionary Object. 

Syntax:

DictionaryObject.RemoveAll 

Example Code: Below code demonstrates the ASP Dictionary.RemoveAll Method. 

ASP




<%
dim d,a,i
set d=Server.CreateObject("Scripting.Dictionary")
d.Add "m","mango"
d.Add "n","naman"
d.Add "b",""banana>")
next
  
set d=nothing
%>


Output:

Key values:

(nothing)

Like Article
Suggest improvement
Share your thoughts in the comments

Similar Reads