Yes, please delete it or consult with a third party developer for a fix. Please note that we do not support custom codes given in this forum even it was given from us. Custom codes are not official parts of the product. They are only here to serve as a guide.
Thank you for understanding.