Favorites:Delete_All template tag
The Favorites:Delete_All tag allows your members to delete all of their favorites at once. Be very careful with this, as any member that loads this page will have ALL of their favorites removed instantly, and there is no way to recover that data.
The Favorites:Delete_All tag will simply output a confirm or error message. Below is a very simple example of how your Delete All template might look like:
The following parameters are available for use:
This parameter allows you to delete all favorites filtered by the collection name.
This parameter sets which kind of favorites to delete. There are 2 options for the type parameter:
- entry (default) - channel entries
- member - member accounts
You would then link to that template from another template to give users the option to delete all of their favorites. It’s strongly recommended you provide an extra confirmation such as the below example: