prefix . 'accessible_docs'; // Build the SQL query with proper identifier quoting. // Since $table_name is built from $wpdb->prefix and a literal string, it is considered safe. $query = "DROP TABLE IF EXISTS `$table_name`"; // Execute the query. // phpcs:ignore WordPress.DB.PreparedSQL.NotPrepared $wpdb->query( $query ); // Delete plugin options. delete_option( 'accessible_docs_settings' );