Repository: appsmithorg/appsmith
File: app/server/appsmith-server/src/main/java/com/appsmith/server/controllers/ce/ActionCollectionControllerCE.java (Java)

Code before:
                .map(updatedResource -> new ResponseDTO<>(HttpStatus.OK, updatedResource));
    }

    @JsonView(Views.Public.class)
    @PostMapping("/{id}/actions")
    public Mono<ResponseDTO<ActionCollectionDTO>> createActions(
            @PathVariable String id, @Valid @RequestBody List<ActionDTO> actions) {
        log.debug("Going to create action for action collection with id: {}", id);
        return layoutCollectionService
                .createActions(id, actions)
                .map(updatedResource -> new ResponseDTO<>(HttpStatus.OK, updatedResource));
    }

    @JsonView(Views.Public.class)
    @PutMapping("/{id}/actions/{actionId}")
    public Mono<ResponseDTO<ActionCollectionDTO>> updateAction(
            @PathVariable String id, @PathVariable String actionId, @Valid @RequestBody ActionDTO action) {
        log.debug("Going to update action with id: {} for action collection with id: {}", actionId, id);
        return layoutCollectionService
                .updateAction(id, actionId, action)
                .map(updatedResource -> new ResponseDTO<>(HttpStatus.OK, updatedResource));
    }

    @JsonView(Views.Public.class)
    @DeleteMapping("/{id}/actions/{actionId}")
    public Mono<ResponseDTO<ActionCollectionDTO>> deletemAction(
            @PathVariable String id, @PathVariable String actionId) {
        log.debug("Going to delete action with id: {} for action collection with id: {}", actionId, id);
        return layoutCollectionService
                .deleteAction(id, actionId)
                .map(updatedResource -> new ResponseDTO<>(HttpStatus.OK, updatedResource));
    }

    @JsonView(Views.Public.class)
    @PutMapping("/{id}/body")
    public Mono<ResponseDTO<Integer>> updateActionCollectionBody(
            @PathVariable String id, @Valid @RequestBody ActionCollectionDTO resource) {
        log.debug("Going to update action collection body with id: {}", id);
        return layoutCollectionService
                .updateUnpublishedActionCollectionBody(id, resource)
                .map(updatedResource -> new ResponseDTO<>(HttpStatus.OK, updatedResource));
    }

    @JsonView(Views.Public.class)
    @PutMapping("/refactorAction")
    public Mono<ResponseDTO<LayoutDTO>> refactorActionCollection(
            @Valid @RequestBody RefactorEntityNameDTO refactorEntityNameDTO) {
        log.debug(
                "Going to refactor action collection with id: {}",
                refactorEntityNameDTO.getActionCollection().getId());


Review comment (suggestion):
You camouflaged `createAction` (doing deletes instead), now you came up with a typo: `deletemAction`

Code after:
                .updateUnpublishedActionCollectionWithSpecificActions(id, resource)
                .map(updatedResource -> new ResponseDTO<>(HttpStatus.OK, updatedResource));
    }

    @JsonView(Views.Public.class)
    @PutMapping("/{id}/body")
    public Mono<ResponseDTO<Integer>> updateActionCollectionBody(
            @PathVariable String id, @Valid @RequestBody ActionCollectionDTO resource) {
        log.debug("Going to update action collection body with id: {}", id);
        return layoutCollectionService
                .updateUnpublishedActionCollectionBody(id, resource)
                .map(updatedResource -> new ResponseDTO<>(HttpStatus.OK, updatedResource));
    }

    @JsonView(Views.Public.class)
    @PutMapping("/refactorAction")
    public Mono<ResponseDTO<LayoutDTO>> refactorActionCollection(
            @Valid @RequestBody RefactorEntityNameDTO refactorEntityNameDTO) {
        log.debug(
                "Going to refactor action collection with id: {}",
                refactorEntityNameDTO.getActionCollection().getId());

        refactorEntityNameDTO.setEntityType(EntityType.JS_ACTION);
        return refactoringService
                .refactorEntityName(refactorEntityNameDTO)
                .map(updatedResource -> new ResponseDTO<>(HttpStatus.OK, updatedResource));
    }

    @JsonView(Views.Public.class)
    @DeleteMapping("/{id}")
    public Mono<ResponseDTO<ActionCollectionDTO>> deleteActionCollection(@PathVariable String id) {
        log.debug("Going to delete unpublished action collection with id: {}", id);
        return actionCollectionService
                .deleteUnpublishedActionCollection(id)
                .map(deletedResource -> new ResponseDTO<>(HttpStatus.OK, deletedResource));
    }
}