private void RunItemDeleted(Item item, ID formerParentId)
        {
            var rulesEngine = new RulesEngine(item.Database);

            try
            {
                using (new SecurityDisabler())
                {
                    if (item.IsInboundRuleItem() || item.IsSimpleRedirectItem())
                    {
                        Log.Info(this, item.Database, "Clearing inbound rules cache after delete event");

                        rulesEngine.DeleteRule(item, null);
                        //rulesEngine.ClearInboundRuleCache();
                    }
                    else if (item.IsInboundRuleItemChild(formerParentId))
                    {
                        Item itemParent = item.Parent;
                        if (itemParent == null && formerParentId != (ID)null)
                        {
                            itemParent = item.Database.GetItem(formerParentId);
                        }

                        Log.Info(this, item.Database, "Updating parent inbound rule ({0}) after child delete event",
                                 itemParent.Paths.Path);

                        rulesEngine.RefreshRule(itemParent, GetRedirectFolderItem(itemParent));
                    }
                    else if (item.IsOutboundRuleItem() || item.IsOutboundRuleItemChild())
                    {
                        Log.Info(this, item.Database, "Clearing outbound rules cache after delete event",
                                 item.Parent.Paths.FullPath);

                        rulesEngine.ClearOutboundRuleCache();
                    }
                }
            }
            catch (Exception ex)
            {
                Log.Error(this, ex, item.Database,
                          "Exception occured which deleting item after publish Item ID: {0} Item Path: {1}", item.ID,
                          item.Paths.FullPath);
            }
        }