Fixed the issue. The delete button is now displayed only on the product variants(s) section of the product edit page when the variant details are already saved. When delete the saved variant details, the success/error messages are now displayed on the same page of product edit.