To load a layout to a Divi page/post you have a load and a delete button. If you accidentally click delete, your layout is gone. It's even not in the recycle bin. This is how you can hide that button.
Add this to functions.php of your child theme.
// hide the delete button where you can load a Divi library layout
add_action('admin_head', 'hide_et_pb_layout_button_delete');
function hide_et_pb_layout_button_delete() {
echo '<style>
.et_pb_layout_button_delete {
display: none !important;
}
</style>';
}
Code language: PHP (php)