wp_delete_attachment not working with multiple values

$att_ids = explode(‘,’, $_POST[‘jfiler-items-exclude-imgid’])), will return a key=>value array, so you must write your foreach loop to handle keys and values

foreach($att_ids as $key=>$att_id){
    wp_delete_attachment($att_id);
}

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)