SenseNet.ContentRepository.TrashBin.ForceDelete C# (CSharp) Method

ForceDelete() public static method

public static ForceDelete ( GenericContent n ) : void
n GenericContent
return void
        public static void ForceDelete(GenericContent n)
        {
            Logger.WriteVerbose("Trashbin: Finally deleting from Repository", Logger.EmptyCategoryList, new Dictionary<string, object> { { "NodePath", n.Path } });
            n.ForceDelete();
        }

Usage Example

Example #1
0
        public virtual void Delete(bool bypassTrash)
        {
            //let the TrashBin handle the delete operation:
            //only move the node to the trash or delete it permanently

            if (bypassTrash)
            {
                TrashBin.ForceDelete(this);
            }
            else
            {
                TrashBin.DeleteNode(this);
            }
        }