Skip to main content
Participant
February 12, 2024
Question

Delete Anchored objects

  • February 12, 2024
  • 4 replies
  • 910 views

Hello ! Having a lot of files coming from our client with anchored objects, can we please have an option to delete it even in the "inline or above line objects" mode ? (cut and paste it is not a great solution as it doesn't stay at the same place as it was)
Would save so much time to so many people !!!

4 replies

Community Expert
February 17, 2024

Hi @Anne35404369uvu5 ,

to remove (delete) all anchored objects in a document could be done with one line of code in ExtendScript (JavaScript):

app.documents[0].stories.everyItem().texts.everyItem().pageItems.everyItem().remove();

 

Well, not the ones in table cells and footnote texts.

This requires extra effort…

 

Regards,
Uwe Laubender
( Adobe Community Expert )

Robert at ID-Tasker
Legend
February 17, 2024

@Laubender

 

 

 

app.documents[0].stories.everyItem().texts.everyItem().tables.everyItem().cells.everyItem().pageItems.everyItem().remove()

 

 

 

should do the trick?

 

But instead of remove() - release() anchoredObjectSettings.releaseAnchoredObject() should work for @Anne35404369uvu5 - in both cases. 

 

Community Expert
February 19, 2024

Hi Robert,

that would remove items in graphic cells as well.

And don't forget the footnote texts.

 

Regards,
Uwe Laubender
( Adobe Community Expert )

Robert at ID-Tasker
Legend
February 13, 2024

So you don't want to delete them permanently - but release / unanchor?

 

Rene Andritsch
Community Expert
Community Expert
February 13, 2024

Marc Autret wrote a script that will release all anchored objects in your document. Read this thread: https://community.adobe.com/t5/indesign-discussions/release-all-anchored-objects-at-once/m-p/3807944

Frans v.d. Geest
Community Expert
Community Expert
February 12, 2024

Right-click on the Anchored object, then choose Achored Object/Release.

Participant
February 26, 2025

I have right clicked the object and see a dropdown list with Anchored Object. I then clicked Anchored Object and was given one option which was another dropdown of "Options". When I click the the options dropdown I see no option to 'release'. Is there some other way to get to the release option?

Robert at ID-Tasker
Legend
February 26, 2025

@BrantlyGoodwin

 

Only Anchored can be released - InLined - can't.