Dmitry Igrishin <dmitigr(at)gmail(dot)com> writes:
> "there is no libpq function for deleting a prepared statement".
> Could you tell me please, what is the reason for this?
You don't really need one, since you can just use DEALLOCATE.
regards, tom lane