title: Api-Platform: use validation_groups on DELETE action
body: <p>I am trying to prevent removal of an entity when it has some specific content.
  So I added a validation rules, and it is working perfectly with a regular controler using a form validation.</p>
  <pre><code>//entity
      /**
       * @Assert\IsTrue(message=&quot;Delete not allowed&quot;, groups=&quot;delete&quot;)
       *
       * @return bool
       */
      public function isDeleteAllowed(): bool
      {
          //some logic here...
          return false;
      }
  </code></pre>
  <p>Now I want to reuse the same logic for the api-platform part.
  I have setup a validation group for the delete action of my entity</p>
  <pre><code>//entity
  /**
   * @ApiResource(
   *     itemOperations={
   *         &quot;delete&quot;={
   *              &quot;validation_groups&quot;={&quot;delete&quot;}
   *          }
   *     })
   */
  </code></pre>
  <p>However the api-platform DELETE action is skipping validation.
  How can I enforce it?</p>
  <p>For your information, I found the reason why it is not working in the api-platform source code where they deliberately ignore validation on DELETE action. So I opened a ticket to see if it can be fixed <a href="https://github.com/api-platform/api-platform/issues/1928" rel="nofollow noreferrer">Validation on DELETE action</a></p>