DeleteItem method: Pagelet collection

Syntax

DeleteItem(PageletName)

Description

The DeleteItem method deletes the pagelet object identified by PageletName from the pagelet Collection.

Note:

The portal registry classes execute some methods "interactively", that is, as they happen. The item won't be marked for deletion, then actually deleted later. The item is deleted from the database as soon as the method is executed.

Parameters

Parameter Description

PageletName

Specify the name of a pagelet existing in the pagelet collection.

Returns

A Boolean value: True if the pagelet was deleted, False otherwise.

Example

If Not &MyColl.DeleteItem("Test_Pagelet") Then
   /* can't delete test data. Do error processing */
End-if;