non-empty container deletion

10 views
Skip to first unread message

Ilja Livenson

unread,
Feb 15, 2014, 10:44:16 AM2/15/14
to snia-...@googlegroups.com
Hi,

what is CDMI's stand on handling deletion requests against a non-empty
container? Couldn't find a clear statement in the specification.
Should an exception be raised (400? 409?) or rather recursive delete
(potentially slow and destructive)?

thanks,
Ilya

Mark Carlson

unread,
Feb 15, 2014, 11:41:58 AM2/15/14
to snia-...@googlegroups.com
This is one of CDMI's more useful features in that it will actually do a
recursive delete of all sub-containers and objects.

Other interfaces do not allow this, and force you to do the recursive
delete from bottom up - possibly incurring charges from all the
individual operations.

If the user needs to be prompted with an "are you sure?" message, it
needs to be done at the client.

-- mark
Reply all
Reply to author
Forward
0 new messages