Implement delete_layout method