I have a multimedia component and it is linked in Content component. When I publish the component, the binary should be stored in the file system without any tcmid. e.g A multimedia component with filename "image1.png" should be stored on the file system as "image1.png".
To implement the above scenario, I did not use DD4T "Publish Binaries for component". I have created a custom publish binaries TBB.
I have mentioned below parameter for AddBinary function. Binarystream,filename,variant Id(same as filename),component object,multimediaType
Using this custom TBB, if I publish the component, the binary files are stored in file system. but when i unpublish the component the binaries are not removed from the file system.
What is the reason behind this and how can I resolve this issue?