Are unused resources deleted automatically?

Hello,

I wonder whether Joplin delete unused resources? If it does, how does it know/decide if a resource is used by some note(s)?

To be concrete, suppose I have notes A and B, and A contains an attachment C. Is it safe to refer to attachment C in note B by copy-and-pasting the markdown link to C into B? If I do so and delete note A afterwards, will Joplin delete the resource B, too, making the reference in B obsolete?

Thank you.