HideFlags.HideAndDontSave does behaviour in 2017.4.0f1

HideFlags.HideAndDontSave is not destroying any object created in edit mode when change scenes or switching to play mode.

If I use any HideFlags.DontSave, the gameObject will still be there but not will not shown in Hierarchy.

Any ideas how to fix this? This is the intented behaviour?

Yes this is the intended behaviour, according with the docs;