Deleting layout does not properly remove blocks within layout

Permalink 2 2 Browser Info Environment
I deleted a 3 column layout that contained a total of six blocks with out first deleting the blocks.
Nothing is displayed in the area but when I use getTotalBlocksInArea and output the result it shows 6.

So my code using this does not hide the empty area when published.

The area is still displayed even though I have deleted the blocks via deleting the layout.
I also tested this on V8.4.2 and found the same result.

I would think that deleting a layout should also remove the record of containing blocks from the page.


Status: New
cmerritt

concrete5 Environment Information

# concrete5 Version
Core Version - 8.5.2
Version Installed - 8.5.2
Database Version - 20190925072210

# Database Information
Version: 5.6.45
SQL Mode: NO_ENGINE_SUBSTITUTION

# concrete5 Packages

# concrete5 Overrides
blocks/next_previous/templates/asset_gallery/view.php, blocks/next_previous/templates/asset_gallery, blocks/next_previous/templates/assetbuild/view.php, blocks/next_previous/templates/assetbuild, blocks/next_previous/templates, blocks/next_previous, blocks/page_attribute_display/templates/asset_areas.php, blocks/page_attribute_display/templates/bathrooms.php, blocks/page_attribute_display/templates/car_bays.php, blocks/page_attribute_display/templates/asset_portfolio_meta.php, blocks/page_attribute_display/templates/bedrooms.php, blocks/page_attribute_display/templates/asset_plan.php, blocks/page_attribute_display/templates, blocks/page_attribute_display, blocks/file/templates/floorplan/view.php, blocks/file/templates/floorplan, blocks/file/templates, blocks/file, blocks/page_list/templates/juniper_blog_thumb/view.php, blocks/page_list/templates/juniper_blog_thumb, blocks/page_list/templates/asset_resihome_three_column/view.php, blocks/page_list/templates/asset_resihome_three_column, blocks/page_list/templates/juniper_blog_grid/view.php, blocks/page_list/templates/juniper_blog_grid, blocks/page_list/templates/juniper_portfolio_two_column/view.php, blocks/page_list/templates/juniper_portfolio_two_column, blocks/page_list/templates/juniper_portfolio_three_column/view.php, blocks/page_list/templates/juniper_portfolio_three_column, blocks/page_list/templates/juniper_portfolio_masonry/view.php, blocks/page_list/templates/juniper_portfolio_masonry, blocks/page_list/templates/asset_testimonials/view.php, blocks/page_list/templates/asset_testimonials/view.css, blocks/page_list/templates/asset_testimonials, blocks/page_list/templates/asset_pagelist_three_column/view.php, blocks/page_list/templates/asset_pagelist_three_column, blocks/page_list/templates/juniper_blog_masonry/view.php, blocks/page_list/templates/juniper_blog_masonry, blocks/page_list/templates, blocks/page_list, blocks/image_slider/icon.png, blocks/image_slider/templates/testimonial_image_slider/view.php, blocks/image_slider/templates/testimonial_image_slider/view.css, blocks/image_slider/templates/testimonial_image_slider, blocks/image_slider/templates, blocks/image_slider

# concrete5 Cache Settings
Block Cache - Off
Overrides Cache - Off
Full Page Caching - Off
Full Page Cache Lifetime - Every 6 hours (default setting).

# Server Software
Apache

# Server API
cgi-fcgi

# PHP Version
5.6.40

# PHP Extensions
bcmath, calendar, cgi-fcgi, Core, ctype, curl, date, dom, ereg, fileinfo, filter, ftp, gd, hash, iconv, imap, ionCube Loader, json, libxml, mbstring, mcrypt, mhash, mysql, mysqli, mysqlnd, openssl, pcntl, pcre, PDO, pdo_mysql, pdo_sqlite, Phar, posix, readline, Reflection, session, SimpleXML, soap, sockets, SPL, sqlite3, standard, tokenizer, wddx, xml, xmlreader, xmlwriter, xsl, zip, zlib

# PHP Settings
max_execution_time - 600
log_errors_max_len - 1024
max_file_uploads - 20
max_input_nesting_level - 64
max_input_time - 600
max_input_vars - 1000
memory_limit - 2048M
post_max_size - 8M
sql.safe_mode - Off
upload_max_filesize - 128M
mysql.max_links - Unlimited
mysql.max_persistent - Unlimited
mysqli.max_links - Unlimited
mysqli.max_persistent - Unlimited
pcre.backtrack_limit - 1000000
pcre.recursion_limit - 100000
session.cache_limiter - <i>no value</i>
session.gc_maxlifetime - 7200
soap.wsdl_cache_limit - 5

Browser User-Agent String

Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:70.0) Gecko/20100101 Firefox/70.0