How to create "Delete Folder Smarticon"?

Does any one know how I can create a smarticon to delete folders?

Subject: How to create “Delete Folder Smarticon”?

From Designer Help:

The Remove method of NotesView removes a view or folder from a database.

Example

See Also

Accessing views and folders

The example works well. It asks for a view/folder name from an inputbox, but you can change that.

Create the LS agent and, in the smarticon you create, insert @Command([ToolsRunMacro];“macroname”).

I believe, in order for the deletion to be seen, you’ll have to close and reopen the database.

HTH