iplemented document deletion, put and attachment put