Components from a file that doesn't exist anymore

I have some components in a file and I can’t delete or rename them. Also when I click “Go to main component in library” it takes me to an old file and asks me if I want to restore the component. Even though I restore the component I still cannot delete the component from the first file.

Hi @Ricardo_Patta1 ,

Can you share your file or attach a screenshot?

Perhaps your component instance is locked?

I’m not able to delete this component and when I click “Go to main component” it takes me to another file and asks me to restore the compnent because it doesn’t exist anymore. But this action doesn’t allow me to delet the component from the first file. It is like a ghost component stucked in my file.

Ahh ok, now I understand. You need publish the file from where the components was deleted to remove it from the assets:

image

1 Like

And when I don’t have access to the file anymore?
image

If you can’t get permission to access the file, you can perhaps just disable the library so it does not show up in your assets?

1 Like

I also have this problem. A (button) component that was deleted from a library remains in the assets panel. Doing a search using a plugin (Instance Finder) finds zero results. Pulling the component out of the assets panels and selecting ‘go to main component’ takes you to the page where it used to be but it’s no longer there.

Even turning the library off in other files doesn’t remove it.

2 Likes

+1 Louis… not sure how I managed this, but here’s a video:

It seems like if you don’t have the source file open, it does what I posted above. If you do, it just takes you to the page of that file that’s currently open, and does nothing.

Ultimately… if this component was removed from the library… why is it even in the Assets panel at all??

I feel your pain. I dealt with this same problem for a couple of months until today.
I found a ‘hacky’ way to get rid of those ghost files.

  1. Drag the component you want to delete into your art board
  2. Right click on it and select ‘Go to main component’
  3. Right click on the component group you just restored and select ‘Flatten’
  4. Delete both the flattened image(s) + the initial component you dragged into your art board

It should remove it from your assets.

Give it a go and let me know if it works with you as well :slight_smile:
@Louis_Babinard @Ricardo_Patta1

1 Like