You need to use both sorts of quotes (single and double) for your onclick statement.
It also looks like you're using a php variable(
profileID
) to index into the array. If so, you forgot the $ prefix.
echo "<a class="cl2" href="deleteprofile.php?id=$noticia[$profileID]" onclick="return confirm(\"Do you really want to delete this Profile?\")">Delete Profile </a><br>";
</br>
or
$str = "<a class="cl2" href="deleteprofile.php?id=$noticia[$profileID]" hold=" />
$str .= " onclick='return confirm(\"Do you really want to delete this Profile?\");'>";
$str .= "Delete Profile</a><br>"
echo $str;</br>