I'm using python to create a feature layer and then delete the feature layer. I don't think this is working for me, unless I am missing something. My end goal is to delete features from an existing feature class based on some attribute values. I'm currently creating a feature layer by passing in a sql query. I then dellete that feature layer.
gp.MakeFeatureLayer(r"conn.sde/schema.fc", "flyr", vSqlStmnt)
gp.delete_management("flyr")
When complete, nothing is deleted.