I want to know an example of removing message or file like a photo
I did not find any functional tutorial in this regard,
There are two methods in bot api that let you to edit a message: editMessageText and editMessageCaption. It is not ideal, but you can use it as an alternative.
editMessageText
editMessageCaption
For example by editing the message to:
"This message is unavailable."