def clean_plugin_data(dashboard_entries, request=None):
    """Clean up the plugin data.

    Clean up the plugin data (database, files) for the dashboard_entries given.

    :param iterable dashboard_entries:
    :param django.http.HttpRequest request:
    :return bool: Boolean True if no errors occurred and False otherwise.
    """
    errors = False
    for dashboard_entry in dashboard_entries:
        plugin = dashboard_entry.get_plugin(request=request)
        if plugin:
            plugin._delete_plugin_data()
    return not errors
