Deleting all instances of a link

Hi,
I have a lot of instances of a link spread over a number of pages and I want to delete all of them without having to go to each page, select each one and delete it. I thought there'd be a way using the links pallet such as right clicking the link group and "delete all" but there doens't seem to be.
The links don't have a specific object style applied so I can't (I think) use Find/Change Object.
Is there another way around this?
Thanks in advance.
(CS4 6.0.5)

This version removes frames.
if (app.documents.length == 0) ErrorExit("No documents are open. Please open a document and try again.", true);
var doc = app.activeDocument;
var links = doc.links;
if (app.selection.length != 1) ErrorExit("Select a graphic frame with image.", true);
var sel = app.selection[0];
if (sel.images.length != 1) ErrorExit("Selected graphic frame should contain an image.", true);
var selectedLink = sel.images[0].itemLink;
var selectedLinkPath = selectedLink.filePath + "";
if (selectedLink == null) ErrorExit("Selected item doesn't contain a link.", true);
var allInstances = [];
var counter = 0;
for (var j = 0; j < links.length; j++) {
     if (links[j].filePath == selectedLink.filePath) {
          allInstances.push(links[j]);
if (allInstances.length == 1) {
     if (!confirm("This link has only one instance. Do you want to delete it?", false, "Delete all instances of a link")) exit();
for (var i = allInstances.length-1; i >= 0; i--) {
     try {
          var link = allInstances[i];
          var image = link.parent;
          var frame = image.parent;
          frame.remove();
          counter++;
     catch(err) {
          $.writeln(i + " - " + err);
if (counter == 0) {
     alert("No links have been removed", "Delete all instances of a link");
else if (counter == 1) {
     alert("One clink has been removed", "Delete all instances of a link");
else if (counter > 1) {
     alert(counter  + " links have been removed", "Delete all instances of a link");
function ErrorExit(myMessage, myIcon) {
     alert(myMessage, "Error", myIcon);
     exit();

Similar Messages

  • Delete all instance for the BPM process

    How can I delete all instances or specific instance of the BPM Process except redeploy the process and unchecked the keep all instance option??

    Hi
    Just a small correction. When you ReDeploy Workflow SCA file and Uncheck the option to keep running instances, if I am not wrong, all OLD instances are NOT deleted. They just become STALE (change the status). BUT these instances are still there in the Database but not show up in the Worklist/Workspace app. You may see these Tasks but you CANNOT open them and it says like Task Details Not Found etc.
    But if your intention is to delete the instances permanently, then see the earlier post on how to delete from EM. This will take care of permanently deleting.
    Thanks
    Ravi Jegga

  • Delete all instances of a button in a project - Captivate 4

    Hi there.
    It seems that with Captivate 2 (or maybe 3), you could copy a button and paste it on all the rest of the slides in your project.  Then if you had to modify that button, you could select it from the Library (memory's fuzzy here, that may not be accurate), then delete it, and it would delete the button from every slide.
    With Captivate 4, I don't see any buttons in the Library.  It also appears that if I paste a button onto all of my slides, each button is renamed and lives as a separate instance, and it's not just replicas of the original button.
    Is this the case? 
    Basically, I want to delete a button from my project that's been pasted on all of my slides.  Without deleting it slide by slide.  Can this be done in Captivate 4?
    I am aware of persistent buttons available via the Widgets functionality, but that wasn't appropriate for my project in this case.
    Thanks,
    Tichelle

    Here's a way to at least delete all Back buttons in a project at once:
    1.    Select Preferences from Edit menu.
    2.    In the Category pane on the left side of the Preferences window, select Quiz>Settings.
    3.    Under the Settings part of the window, uncheck the box next to “Allow backward movement.”
    4.    Click the OK button.
    NOTES:   • Depending on how many slides are in your project, it can take several seconds to complete the process. The Preferences window will disappear when it has completed removing all Back buttons.
                     • Also, if this doesn’t work for some reason (it didn’t remove the Back buttons from all my slides a couple of times), start by first selecting all slides (from Edit menu or Ctrl+A).

  • Deleting all instances of a particular composite using scripts

    Hi,
    I am trying to delete all the instances for a particular composite id in Linux. I got some reference to some script in user guide as below
    Deleting Composite Instances, Rejected Messages, and Orphaned Instances
    This procedure internally invokes the procedures for deleting composite instances, rejected messages, and orphaned instances. This procedure is convenient for deleting all composite instances, rejected messages, and orphaned instances in a single invocation.
    FABRIC.DELETE_ALL(FILTER IN INSTANCE_FILTER,
    MAX_INSTANCES IN INTEGER,
    PURGE_PARTITIONED_DATA IN BOOLEAN DEFAULT TRUE) RETURN INTEGER;
    The following example deletes composite instances, rejected messages, and orphaned instances based on the specified filter.
    DECLARE
    FILTER INSTANCE_FILTER := INSTANCE_FILTER();
    MAX_INSTANCES NUMBER;
    DELETED_INSTANCES NUMBER;
    BEGIN
    FILTER.COMPOSITE_PARTITION_NAME:='default';
    FILTER.COMPOSITE_NAME := 'OrderBookingComposite';
    FILTER.COMPOSITE_REVISION := '1.0';
    FILTER.STATE := fabric.STATE_COMPLETED_SUCCESSFULLY;
    FILTER.MIN_CREATED_DATE := to_timestamp('2009-07-01','YYYY-MM-DD');
    FILTER.MAX_CREATED_DATE := to_timestamp('2009-08-24','YYYY-MM-DD');
    MAX_INSTANCES := 100;
    DELETED_INSTANCES := FABRIC.DELETE_ALL(
    FILTER => FILTER,
    MAX_INSTANCES => MAX_INSTANCES
    END;
    But how do I use it. Should I just run @purge_fabric_oracle.sql and will it prompt for parameters. Also Is this the right script to delete all the instances.
    Regards
    Edited by: user5108636 on 22/06/2010 16:53

    For deletion scripts I am particularly cautious. I want to delete all the instances for a particular composite id. How do I get the composite id. ProcessData [1.0] is shown in the EM under the soa application tree. Is it the composite id.
    Thanks

  • To delete all instances of a particular bpel process using java APIs

    Hi,
    Which classes and methods are used for bulk instances deletion of BPEL process using APIs.

    Iam using this code for deleting instances in bulk,
    WhereCondition wc = WhereConditionHelper.whereInstancesClosed();
    IBPELDomainHandle domainHandle = locator.lookupDomain();
    BPELProcessId processId1 = new BPELProcessId("default","DBTest","1.0");
    domainHandle.deleteInstancesByProcessId(processId1);
    but iam getting Eceptions like
    Exception in thread "main" java.lang.Exception: Error deserializing return-value: java.io.InvalidClassException: com.oracle.bpel.client.BPELDomainHandle; local class incompatible: stream classdesc serialVersionUID = -6384534326625967840, local class serialVersionUID = -8310067783665200608
    Iam able to delete instances one by one using this code,
    ------------------- basic code-----------
    IInstanceHandle instance_handle[];
    instance_handle= locator.listInstances(wc);
    for(int x = 0; x< instance_handle.length; x++){
    System.out.println("Deleting instance "+instance_handle[x]);
    instance_handle[x].delete();
    But i want to delete instances in bulk,not one by one.Can you help me out in this.

  • Deleting object instances

    Hi again,
    If I have an instance of some custom object instantiated through the JAVA API and I want to remove this instance from the database, can I call instance.free(), or will this remove the entire object from the database ie deleting all instances? Thanks
    Ian

    Document doc = (Document) ifs.getPublicObject(objectId);
    doc.free();
    Will delete the object with the id specified in objectId
    null

  • Everytime i link my iphone up to my laptop the message 'welcome to your new iphone' with the option restore from back up or new iphone. i once did restore from back up and it deleted all my recent pictures, music etc. how can i get pass this stage?

    everytime i link my iphone up to my laptop the message 'welcome to your new iphone' with the option restore from back up or new iphone. i once did restore from back up and it deleted all my recent pictures, music etc. how can i get pass this stage?

    Hi Khuram1981 - thank you thank you thank you!  All sorted!  dont suppose you know how to fix another problem I have??? for weeks now, since updating to ios5 I think, for some reason every time I have tried to log onto app store it says CANNOT CONNECT TO ITUNES STORE.  It's nothing to do with my computer, and I've been to the Geniius bar but they couldnt help and nothing I seem to do lets me update my Apps and even worse, I cant even buy any more.  Any suggestions?
    Again thank you SO much for helping with other problem = a real relief.
    Chatterwind xx

  • How do ya delete all the text that is a web link?

    i am not only looking to disable hyperlinks, i want to remove all the links including the text of the links.
    like i want all the text that is a link to the web to delete. because i want to text to speech the thing and it has many links. ie this is a twitter thread, and i want all links out of my text, because it makes no sense for me to listen to them and kind of weird to listen to them. i only want the text, no links, no text of links. not only disable the link from being blue, but also deleting the information of the link. i do not want any links in my text, i do not want any text of web address in my document.
    i do not want to disable the links, instead i want all the web addresses out of the text.

    What is stopping you to erase them?

  • I want to delete all the songs with broken links at once

    I lost a file with a lot of songs on it and it can't be retrieved.  How can I delete all the song titles with broken links at once without having to delete 500 songs one at a time?

    One way to identify the broken links in your library is to create this set of playlists:
    Lost & Found playlists
    Create a playlist called Found, select everything in Music and drag it into the Found playlist. Create a smart playlist called Lost matching All the rules Playlist is Music and Playlist is not Found. Your lost tracks will be in this playlist. They can be deleted with CTRL+A then SHIFT+DELETE.
    Or use iTunes Folder Watch and enable its option to check for dead tracks on startup.
    If you have any Apple devices that could hold the lost media see this user tip.
    Finally, while I'm handing out advice, see this backup tip to avoid this problem again.
    tt2

  • Deleting all linked documents per sales order/item

    We have documents linked to our sales orders/items (which can be seen via CV03N).  I would like to run a batch program to selectively delete all of these linked documents.  There is a function module CV140_LINKS_DELETE that looks will do the trick if you supply DOKAR, DOKNR, DOKVR, DOKTL, DOKOB and OBJKY.  In our case DOKAR is 'ZQN', DOKVR is '00', DOKTL is '0000' DOKOB is 'VBAP' and OBJKY is a combination of sales order/line.  How would DOKNR be filled in if I want to delete all documents?
    Thank you.

    In my case, I'm trying to delete the following:
    DOKAR = 'ZQN'
    DOKNR = (can have 34 different values ranging from Q01-Q34)
    DOKVR = 00
    DOKTL = 0000
    DOKOB = VBAP
    OBJKY = sales order/line - I have this in an internal table I loop thru
    My issue is with the DOKNR value.  Is there a way to delete all document links for a sales order/line when you don't have a DOKNR value?

  • Custom link to Delete All Revisions

    I was wondering which service needs to be called from a Site Studio page to delete all the revision of a particular document.
    DELETE_REV deletes the latest revision of the document only, but is it possible to delete all the revisions in a sinlge click ?

    Use DELETE_DOC instead. See this link for details: http://docs.oracle.com/cd/E21764_01/doc.1111/e11011/c05_core.htm#autoId66

  • Missing links to multiple songs, looking for shortcut to delete all

    i lost over half of my library doing some HDD cleaning. itunes then showed most of my songs were unlinked, because of the deleting. i found the backed up songs on an external drive and imported them into itunes. now i have doubles of nearly every song in my 40GB library.
    so my question is this; is there a shortcut to deleting all 'broken-link' songs from your library at once?
    i have tried using the 'show duplicates' and using apple-select on the broken songs, but an hour into doing that and i am just trough the b's. i need a shortcut to deleting all of the songs with missing links.

    along the same lines...I have 2 external drives where I have stored music. In trying to consolidate, I copied all music from my F drive to my G drive and also made the G drive the default location for my iTunes library. However when I disconnect the F drive the songs that were originally recognized in my F drive show the dreaded '!' exclamation point; clicking on the song returns the error message "The song "xxxxxx" could not be used because the original file could not be found. Would you like to locate it?" I then have the option of going through the G drive and manually finding the song in order to link it to the songs in my library. Other than doing this manually for the thousands of songs iTunes can't find, is there an easier way to point iTunes to my G drive have it recognize all songs on the drive and forget about the original files located on my F drive?

  • Is it possible to delete all oracle instances and OBIEE manually?

    Hi Experts,
    I have a very good tricky questions..........
    i have created/installed Oracle databases i.e 4 times in my laptop whihc i got 4 instances .............and........... i have installed obiee 11g 4 times(4 instances) for the database ......
    i am unable to unistall the Oracle database and obiee 11g first two instances ................
    so my requirement is i want to totally delete all the instances with out using unistall
    so i need to delete the folders , delete the services and everything thats belongs to all the 4 isntances of both database and OBIEE ...........
    please dontmind asking this stupid questions ........... please let me know if it is possible
    Thanks

    Hi,
    It should be possible;
    Oracle --> http://www.oracle-base.com/articles/misc/ManualOracleUninstall.php
    Oracle BI 11g --> http://obibb.wordpress.com/2010/12/08/deinstall-oracle-bi-11g/
    Good Luck,
    Daan Bakboord
    http://obibb.wordpress.com

  • How do I restore Delete all spam link

    I used to be able to click "all" and delete all spam messages at once. That "all" suddenly disappeared. How do I get it back to avoid having to click on every spam?

    From your Safari menu bar click History > Clear History
    Or, back to the menu bar click Safari > Preferences then select the General tab.
    Click the:  Remove history items pop up menu then make a selection.
    Back to the menu bar, click Safari > Private Browsing
    With that enabled Safari won't remeember visited pages, history, or AutoFill information.

  • How can i delete all non native art?

    Hello all,
    i have a pdf of a relatively complex architectural plan.
    I dont have acces to originals and i need to use that plan for some illustaive purposes.
    In the plan, I find a s**tload (over 2000) of non native art and they take a lot of cpu juices. This makes the document impossible to work with let alone select and remove every instance of these non native art pieces.
    Is there a way to select and remove all of those non native art either with a js script of some other odd technique i shoulmd know about ?
    Ffind here : www.finewar.ca/non_native_art.ai a document with a sampling of the kind of non native art i want to be able to select and delete.
    Many thanks for your help!

    Hello Jacob,
    link is fixed, thanks for pointing it out.
    This being said, I dont see the Select>Object>Raster Art option or anything similar. I should've mentionned i use AI CS5.1
    I did find in the meantime that selecting identical aspect with one item selected works kind of okay but it grab lots of other stuff.
    Would love to find a way to delete all those non native gradients in a couple clicks (i never need them and i get them on many plans).

Maybe you are looking for

  • Missing Plug-in on Preview

    I receive the Missing Plug-In message when I drag a PDF file from the desktop into the Mail icon in the dock; however when I create a new message first, then drag in the PDF file to the body of the message, it works fine. I am also now receiving the

  • HT1782 File in Finder can't open, erase

    I have two files (cursor arrow pointing them out on screen shot). They appear as "Favorite" files in "Finder". I can't open, move, ... do anything with them. When I use the cursor and push down on the mousepad (to select, open) them, I get the white

  • IPhone Weather App issues

    Hello, I am having an ongoing issue with the weather app in the Notification Center not reflecting the correct city when the location services for the app in turned on, why? I did contact Apple earlier today, they asked me to use the feedback link at

  • TIF logo change in AI CS2

    I am creating a document in InDesign and the client has given me a TIF version of their logo. It's beautifully designed, but I want to remove the white background. I'm an AI (CS2) novice. Is there a simple way to knockout the background?

  • Need help with SQLite

    I have a SQLite database from with I want to display my results in a form in a Flash movie. I know how to display these results in a datagrid, but I want to display them in seperate texfields. Can anyone help ? My current code for displaying results