Plugin development: delete options when updating to a new version

Does your plugin use a version number?
On plugin activation you can compare the version number and use the code you have above to remove the ‘old’ options if they exist.

if ( $myplugin_version > 3.0 ) {
    // Remove all plugin options with the prefix "myplugin_"
}

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)