This question already has an answer here:
I am using ArcGIS Desktop 10.2.
I have a script that successfully converts a .csv into an already-existing feature class by first truncating the feature class table and then using the following line to replenish the table with the new data from the first parameter, "source" (an XYEventLayer).
arcpy.Append_management(input, target, "NO_TEST", mapping)
The destination feature class ("target") already exists in the TOC, within two group layers.
But every time I run the script a new duplicate layer appears at the top of the Table of Contents. I'm 99% sure this is being done by the Append_management tool although ESRI's documentation doesn't mention this behavior.
How can I prevent the Append_management tool from adding its output ("target") to the TOC?