You can disable forwarding of STP (Spanning Tree Protocol) Bridge Protocol Data Units (BPDUs) when STP is disabled on a switch. When STP is disabled globally, BPDUs received on a port are forwarded to other ports that are part of same VLAN (Virtual LAN) causing the switch to transparently forward STP/RSTP/MSTP (Multiple Spanning Tree Protocol) BPDUs. This transparent forwarding causes one-to-many peer in the network trouble where STP disabled. To avoid this transparent forwarding of BPDUs, you can opt to discard the BDPUs when there is no STP configuration enabled on the switch.
To disable STP BDPUs, use the command:
configure stpd bpdu-forwarding [on | off]