예제 #1
0
        /// <summary>
        /// Delete this profile
        /// </summary>
        public void Delete()
        {
            // dispose the profile
            Dispose();

            using (MetaLock(APPLY_UPDATES_LOCK))
            {
                // delete the underlying settings tree
                SettingsKey.UnsetSubsettingTree(_id);
            }

            // if we are the default profile then set the default to null
            if (_id == DefaultBlogId)
            {
                DefaultBlogId = String.Empty;
            }

            OnBlogSettingsDeleted(_id);
        }