Revision history [back]
Try this in the django shell (stared by python manage.py shell):
from askbot.models import Activity
from askbot import const
activity_types = (
    const.RESPONSE_ACTIVITY_TYPES_FOR_DISPLAY,
    const.TYPE_ACTIVITY_MENTION,
    const.TYPE_ACTIVITY_MARK_OFFENSIVE,
)
Activity.objects.filter(activity_type__in=activity_types).delete()
 If there is something else left, we may have to add more activity types to the lookup list.