When people tried to post such posts, they received a message: "Keeping our community safe ... Posts with #ResignModi are temporarily hidden here. Some content in those posts goes against our Community Standards."
Over 12,000 posts calling for the Indian PM's resignation were later reinstated, and Facebook said it was an error.
Twitter also recently deleted some posts critical of the Indian government after that government issued them a legal request.