ASP Contents.Remove Method
The ASP Contents.Remove Method is used to remove an item from the Application.Contents collection. It is a predefined method of the application type Object,
Syntax:
Application.Contents.Remove(name|index)
Parameter Values: It contains the value i.e name which represents the index of the specified items that would be removed from the application.
Return Values: This method has not returned any values.
Example: Below code illustrates how to remove the second item from the content list.
<% Application("'name1")=("w3wiki") Application("name2")=("Javatpoint") Application("name3")=("Sanfoundary") Application.Contents.Remove("name2") for each x in Application.Contents Response.Write(x & "=" & Application.Contents(x) & "<br>") next %>
Output
name1=w3wiki name3=Sanfoundary
Contact Us