<@U04S8PLJWMT> How can you delete a deprecated sou...
# ask-ai
c
@kapa.ai How can you delete a deprecated source definition. When using the API, it throws an error "Public definitions cannot be modified."
k
To delete a deprecated source definition in Airbyte, you can only delete custom (user-defined) source definitions, not public (built-in) ones. The error "Public definitions cannot be modified" occurs because Airbyte restricts modification or deletion of public connector definitions via the API. This is explicitly stated in the documentation: > You can't use these endpoints to modify Airbyte's public connector definitions. If you're using the Cloud version of Airbyte, you can only create or modify custom connectors using a YAML manifest. [Create custom connectors from YAML or Docker images using the API and Terraform](https://docs.airbyte.com/release_notes/v-1.6#create-custom-connectors-from-yaml-or-docker-images-using-the-api-and-terraform) If you need to remove a public (built-in) connector from your Airbyte instance, you would need to do so at the database level by marking the relevant entry in the
actor_definition
table as deleted (using the
tombstone
flag), but this is not supported or recommended for most users and is not available via the public API. For custom connectors, you can use the appropriate DELETE endpoint as described in the API documentation. In summary: - Public (built-in) source definitions cannot be deleted or modified via the API. - Custom source definitions can be deleted using the API. If you need to hide or remove a public connector from your UI, you may need to manipulate the database directly, but proceed with caution and ensure you have backups before making such changes.
c
@kapa.ai This source connector is no longer included if you do a fresh deployment of airbyte. Additionally it sits saying it needs to be updated but it can't because it no longer exists.
k
A message from kapa.ai
New message text here
c
This was helpful. I was able to delete the Archived Source connector in the database. I needed to first find the ID of the connector using the airbyte api:
Copy code
GET /api/public/v1/workspaces/<my_workspace_id>/definitions/sources/
In my case it was the following sources: MongoDB POC:
Copy code
5ac5a7e5-43f5-4e7a-bf53-70961b0307bc
Orbit:
Copy code
95bcc041-1d1a-4c2e-8802-0ca5b1bfa36a
Then after connecting to the airbyte database I was able to first validate the connector id:
Copy code
select * from actor_definition where id = '<connector_id>';
If that only returned 1 row with the correct connector name, then I deleted it:
Copy code
delete from actor_definition where id = '<connector_id>';