 	</cfoutput>
 </cfif>
 <!------------------------------------------------------------------------------------------->
+<cfif action is "deleteStagingData">
+	<cfquery name="killOld" datasource="user_login" username="#session.dbuser#" password="#decrypt(session.epw,session.sessionKey)#">
+		delete from cf_temp_lbl2contr
+	</cfquery>
+	<p>
+		Data deleted. <a href="bulkEditContainer.cfm">load more</a>
+	</p>
+</cfif>
+<!------------------------------------------------------------------------------------------->
 <cfif action IS "validateUpload">
 	<script src="/includes/sorttable.js"></script>
 	<cfoutput>

				</tr>
			</cfloop>
		</table>
	</cfoutput>
</cfif>
<!------------------------------------------>
<cfif action IS "finalizeUpload">
		<cfstoredproc procedure="bulkUpdateContainer" datasource="user_login" username="#session.dbuser#" password="#decrypt(session.epw,session.sessionKey)#">
		</cfstoredproc>
		<!----
	<!--- lots of possibliities here, so break this into a few simpler queries ---->
	<cftransaction>

		<cfif fail.c gt 0>
			There are problems. Fix the data and try again.
		<cfelse>
			Validation complete
			<p>
				Please review the data in the staging table below. Pay special attention to the "note" column - these are not "errors"
				but information here may be an indication that the edit you are about to make is not exactly correct or what you want.
				Instructions for completing the upload or making changes to this data are found at the bottom of the staging table.
			</p>
		</cfif>
		<cfquery name="d" datasource="user_login" username="#session.dbuser#" password="#decrypt(session.epw,session.sessionKey)#">
			select * from cf_temp_lbl2contr
