GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — feat(cli): Add `feast projects delete` command (closes #5095) by mailtoboggavarapu-coder · Pull Request #6318 · feast-dev/feast

feat(cli): Add feast projects delete command (closes #5095) #6318

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Sign up for GitHub

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
ntkathole merged 5 commits into feast-dev:master from mailtoboggavarapu-coder:feat/expose-project-delete-cli-v2
May 6, 2026

Uh oh!

There was an error while loading. Please reload this page.

Merged

feat(cli): Add feast projects delete command (closes #5095) #6318

Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
5 commits
Select commit Hold shift + click to select a range
acdf7e3
feat(cli): Add `feast projects delete` command (closes #5095)
mailtoboggavarapu-coder Apr 22, 2026
d113a3a
fix(cli): align project_list and project_current with master implemen…
mailtoboggavarapu-coder Apr 22, 2026
c713be7
refactor(cli): use store.delete_project() instead of registry directly
mailtoboggavarapu-coder May 6, 2026
b18ba31
feat(cli): add delete_project method to FeatureStore
mailtoboggavarapu-coder May 6, 2026
5d6419a
fix(store): fix list_saved_datasets indentation in feature_store.py
mailtoboggavarapu-coder May 6, 2026
File filter
Filter by extension

Clear filters
Conversations
Failed to load comments.
Loading

Uh oh!

There was an error while loading. Please reload this page.

Jump to
Jump to file
Failed to load files.
Loading

Uh oh!

There was an error while loading. Please reload this page.

Diff view
Diff view

There are no files selected for viewing

51 changes: 42 additions & 9 deletions 51 sdk/python/feast/cli/projects.py
Show comments
View file
Open in desktop
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

from feast import utils
from feast.cli.cli_options import tagsOption
from feast.errors import FeastObjectNotFoundException
from feast.errors import FeastObjectNotFoundException, ProjectNotFoundException
from feast.repo_operations import create_feature_store


Expand All @@ -23,16 +23,16 @@ def project_describe(ctx: click.Context, name: str):
Describe a project
"""
store = create_feature_store(ctx)

try:
project = store.get_project(name)
except FeastObjectNotFoundException as e:
print(e)
exit(1)

print(
yaml.dump(
yaml.safe_load(str(project)), default_flow_style=False, sort_keys=False
yaml.safe_load(str(project)),
default_flow_style=False,
sort_keys=False,
)
)

Expand All @@ -44,20 +44,52 @@ def project_current(ctx: click.Context):
Returns the current project configured with FeatureStore object
"""
store = create_feature_store(ctx)

try:
project = store.get_project(name=None)
except FeastObjectNotFoundException as e:
print(e)
exit(1)

print(
yaml.dump(
yaml.safe_load(str(project)), default_flow_style=False, sort_keys=False
yaml.safe_load(str(project)),
default_flow_style=False,
sort_keys=False,
)
)


@projects_cmd.command("delete")
@click.argument("name", type=click.STRING)
@click.option(
"-y",
"--yes",
is_flag=True,
default=False,
help="Skip confirmation prompt and delete immediately.",
)
@click.pass_context
def project_delete(ctx: click.Context, name: str, yes: bool):
"""
Delete a project and all its resources from the registry.
"""
store = create_feature_store(ctx)

if not yes:
click.confirm(
f"Are you sure you want to delete project '{name}'? "
"This will remove all associated resources from the registry.",
abort=True,
)

try:
store.delete_project(name)
except (FeastObjectNotFoundException, ProjectNotFoundException) as e:
print(str(e))
raise SystemExit(1)

print(f"Project '{name}' deleted successfully.")


@projects_cmd.command(name="list")
@tagsOption
@click.pass_context
Expand All @@ -70,11 +102,12 @@ def project_list(ctx: click.Context, tags: list[str]):
tags_filter = utils.tags_list_to_dict(tags)
for project in store.list_projects(tags=tags_filter):
table.append([project.name, project.description, project.tags, project.owner])

from tabulate import tabulate

print(
tabulate(
table, headers=["NAME", "DESCRIPTION", "TAGS", "OWNER"], tablefmt="plain"
table,
headers=["NAME", "DESCRIPTION", "TAGS", "OWNER"],
tablefmt="plain",
)
)
13 changes: 13 additions & 0 deletions 13 sdk/python/feast/feature_store.py
Show comments
View file
Open in desktop
Original file line number Diff line number Diff line change
Expand Up @@ -3401,6 +3401,19 @@ def get_project(self, name: Optional[str]) -> Project:
"""
return self.registry.get_project(name or self.project)

def delete_project(self, name: str, commit: bool = True) -> None:
"""
Deletes a project from the registry.

Args:
name: Name of the project to delete.
commit: Whether the change should be persisted immediately.

Raises:
ProjectNotFoundException: The project could not be found.
"""
return self.registry.delete_project(name, commit=commit)

def list_saved_datasets(
self, allow_cache: bool = False, tags: Optional[dict[str, str]] = None
) -> List[SavedDataset]:
Expand Down
Loading
Oops, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

Add this suggestion to a batch that can be applied as a single commit. This suggestion is invalid because no changes were made to the code. Suggestions cannot be applied while the pull request is closed. Suggestions cannot be applied while viewing a subset of changes. Only one suggestion per line can be applied in a batch. Add this suggestion to a batch that can be applied as a single commit. Applying suggestions on deleted lines is not supported. You must change the existing code in this line in order to create a valid suggestion. Outdated suggestions cannot be applied. This suggestion has been applied or marked resolved. Suggestions cannot be applied from pending reviews. Suggestions cannot be applied on multi-line comments. Suggestions cannot be applied while the pull request is queued to merge. Suggestion cannot be applied right now. Please check back later.
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.