public function actionDeleteRedirect()
{
$this->requirePostRequest();
$this->requireAjaxRequest();
$id = craft()->request->getRequiredPost('id');
$affectedRows = craft()->db->createCommand()->delete('retour_static_redirects', array('id' => $id));
RetourPlugin::log("Deleted Redirected: " . $id, LogLevel::Info, false);
$error = craft()->cache->flush();
RetourPlugin::log("Cache flushed: " . print_r($error, true), LogLevel::Info, false);
$this->returnJson(array('success' => true));
}