[#BloombergLP-bdlma-Factory-deleteObject]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlma.adoc[bdlma]::xref:BloombergLP/bdlma/Factory.adoc[Factory]::deleteObject
:relfileprefix: ../../../
:mrdocs:

Destroy the specified `instance` based on its static type and return its memory footprint to the appropriate memory manager&period; The behavior is undefined unless `instance` was obtained from a call to `createObject` on this object factory and has not yet been deleted&period;

== Synopsis

Declared in `&lt;bdlma&lowbar;factory&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
virtual
void
deleteObject(TYPE* instance) = 0;
----


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