Soft-deletes a parent sitemap and all of its descendants. Only sitemaps with no parent (parent_id is None) can be deleted directly. Attempting to delete a child sitemap directly is not allowed.Purpose:
Enforces hierarchical deletion: only root/parent sitemaps can be deleted explicitly; children are deleted automatically via cascade.
Path Parameters:
sitemap_id (int): Parent sitemap identifier to delete.
Returns:
A success message; 404 when target is not found; 403 if trying to delete a child directly.