How to deactivate license using PHP

To deactivate a license using PHP, you can utilize the plugin’s utility functions as follows:

<?php

// To disable (deactivate) the most recent license activation, use this:
$result = dlm_deactivate_license( 'AAAA-AAAA-AAAA-AAAA' );

// To disable (deactivate) specific license activation identified by token, use this:
$result = dlm_deactivate_license( 'AAAA-AAAA-AAAA-AAAA', 'your-license-activation-token-goes-here' );

if ( is_wp_error( $result ) ) {
	echo 'Nah success: ' . $result->get_error_message();
} else {
	echo 'Deactivated';
}