clean call of ngresource