This function does not ask for the confirmation because this is an user-facing issue, not for the database. Still missing: validation and proper error messages.