public function onDeleteVendor($vendor)
    {
        $database = \OxidEsales\Eshop\Core\DatabaseProvider::getDb();
        $vendorId = $vendor->getId();
        $database->execute("delete from oxseo where oxobjectid = ? and oxtype = 'oxvendor'", [$vendorId]);
        $database->execute("delete from oxobject2seodata where oxobjectid = ?", [$vendorId]);
        $database->execute("delete from oxseohistory where oxobjectid = ?", [$vendorId]);
    }