Depending where these Anchored Textframes are living, this is possible
In this case, I'm assuming they are contained by another text frame:
As long as you gather the textframes from the right place it should work.
tell application "Adobe InDesign CS3"
set mytextframes to every text frame of every text frame of active document
repeat with myTextFrame in mytextframes
release anchored object anchored object settings of myTextFrame