what is the methode for removeInstances?

Hi ,
I tried the portal sample and i want to delete an record.But i don’t succeed to delete it.
the code is:

function deletePersonne(personne){
var d = $.Deferred();
var removeInstances = [{
                'id': personne.id
            }];

            $http({
                method: 'POST',
                headers: {'Content-Type': 'application/json'},
                url: '/app-portal/api/commit',
                data: {
                    
                    'removeInstances': removeInstances,
                    
                    "softDeletion": "true"
                },
                params: {'s': localStorage.getItem('session_id')}
            }).then(function (response) {
                d.resolve("ok");
            }, function (response) {
                if (response.status == 401) {
                   d.reject("pb");
                }
            });


}

the return error is status: 500
Thanks for your help!

Please provide at least the exception stack trace that you can find in the server log.

Finalement i resolve the problem with the Advanced REST client(ARC) from google addon:
i haved create an entity Personne with an FileDescriptor but i have comment the get and set functions (in the bloc note).So to resolve i delete the fileDescriptor( i don’t need it in my program)

   @OnDelete(DeletePolicy.CASCADE) 
    @ManyToOne(fetch = FetchType.LAZY) 
    @JoinColumn(name = "FILE_DESCRIPTOR_ID") 
    protected FileDescriptor fileDescriptor; 
/* 
    public void setFileDescriptor(FileDescriptor fileDescriptor) { 
        this.fileDescriptor = fileDescriptor; 
    } 
    public FileDescriptor getFileDescriptor() { 
        return fileDescriptor; 
    } 
*/ 

Arc have better support than Postman for debugging!
Thanks!