Peers: Bulk deletion made more generic in order to be able to use the function for other bulk actions.
Merge origin/master