src/services/RedirectsService.php
public function delete ($id)
	{
		$redirect = RedirectRecord::findOne(compact('id'))->delete();

		if ($redirect === false)
			return 'Unable find redirect with ID: ' . $id;

		return false;
	}
public function delete ($id)
	{
		$redirect = RedirectRecord::findOne(compact('id'))->delete();

		if ($redirect === false)
			return 'Unable find redirect with ID: ' . $id;

		return false;
	}
Deletes the redirect with the given ID

@param int $id

@return bool|string
@throws \Exception
@throws \Throwable
@throws \yii\db\StaleObjectException