[#BloombergLP-bdlcc-ObjectPool-deleteObject-03]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlcc.adoc[bdlcc]::xref:BloombergLP/bdlcc/ObjectPool.adoc[ObjectPool]::deleteObject
:relfileprefix: ../../../
:mrdocs:

`deleteObject` overloads

== Synopses

Declared in `&lt;bdlcc&lowbar;objectpool&period;h&gt;`

Destroy the specified `instance` and release its memory&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
virtual
void
xref:BloombergLP/bdlma/Factory/deleteObject.adoc[deleteObject](TYPE* instance) = 0;
----

[.small]#xref:BloombergLP/bdlma/Factory/deleteObject.adoc[_» more&period;&period;&period;_]#

Return the specified `object` to this pool via `releaseObject`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
virtual
void
xref:BloombergLP/bdlcc/ObjectPool/deleteObject-0d.adoc[deleteObject](TYPE* object);
----

[.small]#xref:BloombergLP/bdlcc/ObjectPool/deleteObject-0d.adoc[_» more&period;&period;&period;_]#

== Parameters

[cols="1,4"]
|===
| Name| Description
| *instance*
| object to destroy
| *object*
| object previously obtained from this pool
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
