code: def delete(python_data: LdapObject, database: Optional[Database] = None) -> None:
      
      dn = python_data.get_as_single('dn')
      assert dn is not None
  
      database = get_database(database)
      connection = database.connection
  
      connection.delete(dn)
docs: Delete a LdapObject from the database.