To avoid that, the rules of engagement must be conscious of collateral damage and work to minimize it. Another researcher, Audrey Cronin, lists six primary ways that terrorist groups end:
Capture or killing of a groups leader. (Decapitation). Entry of the group into a legitimate political process. (Negotiation). Achievement of group aims. (Success). Group implosion or loss of public support. (Failure). Defeat and elimination through brute force. (Repression). Transition from terrorism into other forms of violence. (Reorientation). Databases
The following terrorism databases are or were made publicly available for research purposes, and track specific acts of terrorism:

Global Terrorism Database, an open-source database by the University of Maryland, College Park on terrorist events around the world from 1970 through 2017 with more than 150,000 cases. MIPT Terrorism Knowledge Base
Worldwide Incidents Tracking System
Tocsearch (dynamic database)The following public report and index provides a summary of key global trends and patterns in terrorism around the world

Global Terrorism Index, produced annually by the Institute for Economics and PeaceThe following publicly available resources index electronic and bibliographic resources on the subject of terrorism

Human Security GatewayThe following terrorism databases are maintained in secrecy by the United States Government for intelligence and counter-terrorism purposes:

Terrorist Identities Datamart Environment
Terrorist Screening DatabaseJones and Libicki (2008) includes a table of 268 terrorist groups active between 1968 and 2006 with their status as of 2006: still active, splintered, converted to nonviolence, removed by law enforcement or military, or won. (These data are not in a convenient machine-readable format but are available.) See also
Notes
References
Hoffman, Bruce (1988). Inside Terrorism.
Conversely James F. Pastor explains the significant relationship between terrorism and the media, and the underlying benefit each receives from the other. There is always a point at which the terrorist ceases to manipulate the media gestalt. A point at which the violence may well escalate, but beyond which the terrorist has become symptomatic of the media gestalt itself. Terrorism as we ordinarily understand it is innately media-related.Former British Prime Minister Margaret Thatcher famously spoke of the close connection between terrorism and the media, calling publicity the oxygen of terrorism. Outcome of terrorist groups
Jones and Libicki (2008) created a list of all the terrorist groups they could find that were active between 1968 and 2006. They found 648. Of those, 136 splintered and 244 were still active in 2006. Of the ones that ended, 43 percent converted to nonviolent political actions, like the Irish Republican Army in Northern Ireland. Law enforcement took out 40 percent. Ten percent won. Only 20 groups, 7 percent, were destroyed by military force. Forty-two groups became large enough to be labeled an insurgency; 38 of those had ended by 2006. Of those, 47 percent converted to nonviolent political actors. Only 5 percent were ended by law enforcement. Twenty-six percent won. Twenty-one percent succumbed to military force. Jones and Libicki concluded that military force may be necessary to deal with large insurgencies but are only occasionally decisive, because the military is too often seen as a bigger threat to civilians than the terrorists.