DEALLOCATE SQL - Language Statements DEALLOCATE remove a prepared query 2002-08-12 DEALLOCATE [ PREPARE ] plan_name 2002-08-12 Inputs PREPARE This keyword is ignored. plan_name The name of the prepared query to remove. 2002-08-12 Outputs DEALLOCATE The prepared query was removed successfully. 2002-08-12 Description DEALLOCATE is used to remove a previously prepared query. If you do not explicitly DEALLOCATE a prepared query, it is removed when the session ends. For more information on prepared queries, see . Compatibility 2002-08-12 SQL92 SQL92 includes a DEALLOCATE statement, but it is only for use in embedded SQL clients.