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

`DELETE` as a collection operation

Open
#8,126 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
35/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
php
Domain
api, backend

Research direction

Use the YAML example as the starting reproduction and trace how collectionOperations are validated and built. Check the existing collection-operation behavior and tests, then establish the expected behavior for a DELETE operation that may remove every entity. Done means the configuration is accepted and the behavior is covered by tests.

Written by the indexing model from the issue text.

Description

Description

I recently wanted to use DELETE as a collection operation and wondered why api-platform does not allow it.
It does not make any sense to restrict the user in that way because they are reasonable use cases for it (for example: an endpoint for deleting every entity).

Example
The following should be possible:

App\Dto:
  collectionOperations:
     delete:
       path: /api/entity/del
Dominant language
PHP
Stars
2.6k
Forks
989
Avg merge
1d 22h
Merged PRs (30d)
100

Getting set up

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/core

All issues in api-platform/core

Similar issues

More PHP issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.