@assets.route('<STR_LIT>', methods=['<STR_LIT>'])<EOL>def retire(did):
try:<EOL><INDENT>if dao.get(did) is None:<EOL><INDENT>return '<STR_LIT>', <NUM_LIT><EOL><DEDENT>else:<EOL><INDENT>dao.delete(did)<EOL>return '<STR_LIT>', <NUM_LIT:200><EOL><DEDENT><DEDENT>except Exception as err:<EOL><INDENT>return f'<STR_LIT>', <NUM_LIT><EOL><DEDENT>
Retire metadata of an asset
    ---
    tags:
      - ddo
    parameters:
      - name: did
        in: path
        description: DID of the asset.
        required: true
        type: string
    responses:
      200:
        description: successfully deleted
      404:
        description: This asset DID is not in OceanDB
      500:
        description: Error