The Yucca flower stem can be removed after flowering or at the end of the growing season. Some gardeners will remove right after bloom so the plant does not make any seed pods. Others see the see pods as ornamental in themselves and enjoy them till the end of the summer. If left longer you can enjoy them all winter and then prune off early in the spring. I hope you find this information useful.