When I deleted a website record, I noticed that the deletion removes some of the associated child records. Example, Site Settings, Page Templates, Content Snippets etc are deleted automatically. But, other child objects like Basic Form, List, Multistep forms, web templates are left hanging. The records remain but only the associated link to the website is removed. So, for these objects one has to go to the individual page in the portal management app, query for records where the Website field "does not contain data" and then manually delete these records. Quite odd!!
The cascading delete is just down to someone configuring the the lookup relationship as Cascade Delete, it it not also having been set on other tables. At one point in history various object types did not require the Web Site lookup to be populated so the fact that it doesn't do it for all may be historic - also for me it would be preferable that it didn't cascade delete forms etc as if someone does it by mistake these are more difficult to re-create.
Lucas001
60
Super User 2025 Season 1
Fubar
55
Super User 2025 Season 1
surya narayanan
35