I have a tool that I am publishing to ArcGIS Server and the tool runs fine except for one line
result = arcpy.Delete_management(newfolder)
message = "success"
What I don't understand is why the output of the result variable returns true when the Delete_management does not delete the folder I am passing it. I have tried shutil.rmtree as well with no success.