Depart in confusion having talked foolishly (6)
I believe the answer is:
prated
'talked foolishly' is the definition.
(to prate is to talk foolishly)
'depart in confusion' is the wordplay.
'in confusion' indicates an anagram.
'depart' with letters rearranged gives 'PRATED'.
'having' is the link.
(Other definitions for prated that I've seen before include "talked rubbish" , "Yattered" , "Chattered" .)