how to delete file from public folder in javascript programmatically code example
Example: unlink is a directory laravel
$destinationPath = 'your_path';
File::delete($destinationPath.'/your_file');
$destinationPath = 'your_path';
File::delete($destinationPath.'/your_file');