The type of the button is 'deleteFiles'
$delCols = [ 'img_url', 'thumb_url' ] addField([ 'type' =>'deleteFiles', 'label' => 'Images', 'cols' => $delCols, //array 'showIn'=> 'file_preview', // The preview of the image, or link to a file 'isFile' => true //when it is a file it removes the preview of file links, as an image removes the image preview ]);
Label will be shown in th etext of the button.
This button allows you to erase multiple files at ones, therefore the cols value must be an array of inputs in the form that contain the paths to the file to be deleted, such inputs must have an encrypted data attribute data-delfile;