Yes. It's possible. I have done this SI4T-elasticsearch deployer storage extension based on SI4T framework to publish and unpublish actions to push and remove the items in the elasticsearch index and did present in the TDS, refer to this article.
I hope it helps