Skip to content

Conversation

@camilamacedo86
Copy link
Member

@camilamacedo86 camilamacedo86 commented Jan 4, 2026

Add delete functionality to remove APIs and webhooks from projects. Users can now clean up scaffolded resources with proper validation.

Commands

Delete APIs

kubebuilder delete api --group crew --version v1 --kind Captain

Delete Webhooks

Delete specific webhook types

kubebuilder delete webhook --group crew --version v1 --kind Captain --defaulting
kubebuilder delete webhook --group crew --version v1 --kind Captain --programmatic-validation
kubebuilder delete webhook --group crew --version v1 --kind Captain --conversion

Delete all webhook types (no flags)

kubebuilder delete webhook --group crew --version v1 --kind Captain

Optional Plugin Commands

kubebuilder delete --plugins=helm/v2-alpha
kubebuilder delete --plugins=grafana/v1-alpha  
kubebuilder delete --plugins=autoupdate/v1-alpha

Closes: #907

@k8s-ci-robot k8s-ci-robot added the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Jan 4, 2026
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: camilamacedo86

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot added approved Indicates a PR has been approved by an approver from all required OWNERS files. size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. labels Jan 4, 2026
Add delete functionality to remove APIs and webhooks from projects.
Users can now clean up scaffolded resources with proper validation.
@k8s-ci-robot
Copy link
Contributor

@camilamacedo86: The following test failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name Commit Details Required Rerun command
pull-kubebuilder-e2e-k8s-1-33-0 0299493 link true /test pull-kubebuilder-e2e-k8s-1-33-0

Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR.

Details

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

delete api command line

2 participants