Delete Entity
POST
/api/v1/codegen/delete
const url = 'https://example.com/api/v1/codegen/delete';const options = { method: 'POST', headers: {'Content-Type': 'application/json'}, body: '{"entity_type":"curated","entity_name":"example","hard_delete":false}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://example.com/api/v1/codegen/delete \ --header 'Content-Type: application/json' \ --data '{ "entity_type": "curated", "entity_name": "example", "hard_delete": false }'Generate artifacts for deleting an entity.
Args: delete_input: Delete configuration x_environment_id: Environment ID from header (optional)
Returns: - Unity Catalog DROP/TRUNCATE SQL - Updated bundle with entity removed
Parameters
Section titled “Parameters”Header Parameters
Section titled “Header Parameters”Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
DeleteFlowInput
Input model for deleting flows/connectors.
object
entity_type
required
Entity Type
string
entity_name
required
Entity Name
string
hard_delete
Hard Delete
boolean
Responses
Section titled “Responses”Successful Response
Media typeapplication/json
CodegenResponse
Standard response for all codegen endpoints.
object
status
Status
string
artifacts
required
errors
Errors
Array<string>
Example
{ "status": "success", "artifacts": [ { "encode_artifacts": false } ]}Validation Error
Media typeapplication/json
HTTPValidationError
object
detail
Detail
Array<object>
ValidationErrorobject
loc
required
Location
Array
msg
required
Message
string
type
required
Error Type
string
Examplegenerated
{ "detail": [ { "loc": [ "example" ], "msg": "example", "type": "example" } ]}