Added deleted logic to prompt