This page documents how to delete attachments in JSPWiki.

The functionality is there, but by default only the "Admin" group has the permissions to do this.

The permission to delete pages or attachments is called delete.

To grant this permission you need to modify the /WEB-INF/jspwiki.policy file. For more info see Wiki.Admin.Security

Find the role Authenticated and add the PagePermission "delete". e.g.:

grant principal org.apache.wiki.auth.authorize.Role "Authenticated" {
    permission org.apache.wiki.auth.permissions.PagePermission "*:*", "modify,rename,delete";
    permission org.apache.wiki.auth.permissions.GroupPermission "*:*", "view";
    permission org.apache.wiki.auth.permissions.GroupPermission "*:<groupmember>", "edit";
    permission org.apache.wiki.auth.permissions.WikiPermission "*", "createPages,createGroups";
};

This then adds a "Delete" button to all the "Attach" tab, for all Authenticated users.

Note
This also allows users to Delete Pages from the Info tab.

Screenshot#

HowToDeleteAttachments/DeleteAttachments.PNG
Category.Documentation