ue pyhton delete actor

hello , I try to delete some actors in the scene using python but keep getting errors, how can I use these functions? :sob:
The error is generated in the second sentence
path=“Test.thisIsTest”
unrealSystem=unreal.get_editor_subsystem()
delete_actor=unrealSystem.get_actor_reference(path)
unreal.EditorActorSubsystem.destroy_actor(delete_actor)

Hello… did you find some way to solve this problem?