Check deletion conditions, error message.