add delete DM function