WordPress at a glance
function is not described

is_uninstallable_plugin() WP 2.7.0

Whether the plugin can be uninstalled.

No Hooks.

Return

true/false. Whether plugin can be uninstalled.

Usage

is_uninstallable_plugin( $plugin );
$plugin(string) (required)
Path to the plugin file relative to the plugins directory.

Code of is uninstallable plugin: wp-admin/includes/plugin.php VER 5.1.1

<?php
function is_uninstallable_plugin( $plugin ) {
	$file = plugin_basename( $plugin );

	$uninstallable_plugins = (array) get_option( 'uninstall_plugins' );
	if ( isset( $uninstallable_plugins[ $file ] ) || file_exists( WP_PLUGIN_DIR . '/' . dirname( $file ) . '/uninstall.php' ) ) {
		return true;
	}

	return false;
}