Re: DELETE and 410 Gone

On Aug 25, 2011, at 2:09 PM, Karl Dubost wrote:
> Le 25 août 2011 à 16:56, Roy T. Fielding a écrit :
>> It actually means remove the current representation.
>> The resource is the mapping over time, and hence can't
>> be deleted.
> 
> Do you mean for example a practical case of a resource with multiple representations? 
> 
> http://example.com/foo
> 
> with two representations
> image/png
> image/jpeg
> 
> And use DELETE to remove one of them?

No, it removes all current representations.  It is the equivalent
of rm in the Unix filesystem -- it removes the current association
between the name and whatever that name formerly mapped to.
In essence, it deletes the name from the directory record and
may (or may not) have some impact on the storage system as a
result.  It does not prevent the next request from recreating the
same name via PUT, and hence does not delete the resource because
the identifier is still valid.

....Roy

Received on Thursday, 25 August 2011 21:22:52 UTC