Yes this is an expected behavior.
After converting the step from recorded to a coded one Test Studio looses the connection between the element and the step. Therefore deleting all the steps don't delete "#independent#".
Test Studio simply doesn't know if the element is used or not by some step.
When you delete all steps you can simply delete the elements also.
Hope this helps.