def delete_sp_template_for_vlan(self, vlan_id):
with self.session.begin(subtransactions=True):<EOL><INDENT>try:<EOL><INDENT>self.session.query(<EOL>ucsm_model.ServiceProfileTemplate).filter_by(<EOL>vlan_id=vlan_id).delete()<EOL><DEDENT>except orm.exc.NoResultFound:<EOL><INDENT>return<EOL><DEDENT><DEDENT>
Deletes SP Template for a vlan_id if it exists.