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?


1 Answer 1


This is most likely due to other Component Presentations or Pages referencing the same binary file.

The deployer should manage these references, and when there are no more published items pointing at the binary, it will remove them.

This is all covered in this post: Binary not being removed from filesystem

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.