Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

Hide DeleteButton when API does not expose Delete operation

Open
#612 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
45/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
react, typescript
Domain
api, frontend

Research direction

Start from the React Admin resource edit form and its DeleteButton, then inspect how the available API operations are exposed to that form. Done means the DeleteButton is hidden when the resource has no Delete operation, with the related operation visibility behavior clarified for other operations such as Post and Put.

Written by the indexing model from the issue text.

Description

Description

For many of my resources, I've overridden the ApiResource operations to not include the Delete operation.

The Api Platform React Admin resource edit form still shows the DeleteButton at the right bottom though.

Yes, I can manually override the form and exclude it, but it would be great if the DeleteButton would get hidden if the API does not expose a Delete operation.

This could possibly apply to other operations (e.g. Post, Put?) as well?

Dominant language
TypeScript
Stars
516
Forks
134
PR merge metrics
No merged PRs in 30d

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from api-platform/admin

All issues in api-platform/admin

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.