app.project.item(index).remove()
Description
Deletes this item from the project and from the Project panel. If the item is a FolderItem, all the items contained in the folder are also removed from the project. No files or folders are removed from disk.
Parameters
None.
Returns
Nothing.