Placer le hook_unistall dans le fichier .install de votre module
/**
* Implements hook_unistall().
*/
function my_paragraphs_uninstall() {
$files = file_scan_directory(drupal_get_path('module', 'my_paragraphs') . "/config/install", "/.*\.yml/");
foreach ($files as $file) {
\Drupal::configFactory()->getEditable($file->name)->delete();
}
}