JERUSALEM — Israel’s military has “unfriended” one of its own – after a combat soldier potentially updated Israel’s enemies on Facebook.

The military said Wednesday that a planned raid on a West Bank village was called off after the soldier disclosed its details online. The military said the soldier posted the time and location on his Facebook page, saying that troops were planning on “cleaning up” the village.

Fellow soldiers reported the leak to military authorities, who canceled the raid, fearing that the information may have reached hostile groups and put troops at risk.

The soldier was court-martialed and sentenced to 10 days in prison. He was also removed from his battalion and combat postings.

A military statement added that it is cracking down on soldiers’ use of social networking Web sites and has launched a campaign warning of the dangers of sharing military information online.

“Uploading classified information to social networks or any Web site exposes the information to anyone who wishes to view it, including foreign and hostile intelligence services,” the military statement read.