<?php
$phpVersion = phpversion();
if (version_compare($phpVersion, '5.6.0', '<'))
{
die("PHP 5.6.0 or newer is required. $phpVersion does not meet this requirement. Please ask your host to upgrade PHP.");
}
$dir = __DIR__;
require($dir . '/src/XF.php');
XF::start($dir);
$finder = XF::finder('XF:ReactionContent');
do {
$r = $finder->fetch(100);
/** @var \XF\Entity\ReactionContent $reaction */
foreach ($r as $reaction)
{
$reaction->delete();
}
XF::em()->clearEntityCache();
} while ($r->count() !== 0);