Removing a resource
- Do not display the trash bin / delete icon in the UI unless the user has access permission.
- Selecting/clicking on the trash bin should trigger
HTTP DELETE
(instead ofHTTP PATCH
). - On selecting/clicking resource to be removed, show progress animation, e.g., trash-bin is replaced with a spinner until a response is received from the server.
- Remove the resource from view only when removal is successful.
- When a resource can't be removed, indicate in layperson language why the request wasn't successful.