artifacts: handle detach/delete of artifacts for users who own them and are to be deleted....
artifacts: handle detach/delete of artifacts for users who own them and are to be deleted.
- added relationships that cleanup properly
- cleanup code for detach/delete on users