 <!---------------------------------------------------------------------------------------------------->
 <cfif action is "deleteTaxon">
 <cfoutput>
-
-	<cfquery name="deletetaxon" datasource="user_login" username="#session.dbuser#" password="#decrypt(session.epw,session.sessionKey)#">
-		delete from taxon_name where TAXON_NAME_ID=#taxon_name_id#
-	</cfquery>
+	<cftransaction>
+		<cfquery name="deletetaxontrm" datasource="user_login" username="#session.dbuser#" password="#decrypt(session.epw,session.sessionKey)#">
+			delete from taxon_term where TAXON_NAME_ID=#taxon_name_id#
+		</cfquery>
+		<cfquery name="deletetaxon" datasource="user_login" username="#session.dbuser#" password="#decrypt(session.epw,session.sessionKey)#">
+			delete from taxon_name where TAXON_NAME_ID=#taxon_name_id#
+		</cfquery>
+	</cftransaction>
+
 	<p>
 		deleted
 	</p>

				<li>Delete any other data which references this taxon in any way</li>
			</ul>
			<p>
				You should delete taxa which:
				<ul>
					<li>Do not appear in any publications which anyone might have every considered taxonomy</li>

		<div class="importantNotification">
			Before deleting this taxon, you must
			<ul>
				<li>Delete all relationships</li>
				<li>Delete all common names</li>
				<li>Delete all publication</li>
