Skip to content
David Kittell
David Kittell

Application & System: Development / Integration / Orchestration

  • Services
    • Application Development
    • Online Application Integration
  • Code
  • Online Tools
  • Tech Support
David Kittell

Application & System: Development / Integration / Orchestration

Delete Ektron User

Posted on July 29, 2013October 26, 2015 By David Kittell

In order to force a deletion from the Ektron user list you must follow the below path.

DISCLAIMER: This will remove all content that was ever created/touched by the user.

--Permissions Table
DELETE permissions_tbl
FROM permissions_tbl
INNER JOIN users ON permissions_tbl.user_id = users.user_id
WHERE users.user_name = 'dkittell'

--Group Table
DELETE user_to_group_tbl
FROM user_to_group_tbl
INNER JOIN users ON user_to_group_tbl.user_id = users.user_id
WHERE users.user_name = 'dkittell'

--Content META
DELETE content_meta_tbl
FROM content_meta_tbl
INNER JOIN content ON content.content_id = content_meta_tbl.content_id
INNER JOIN users ON content.user_id = users.user_id
WHERE users.user_name = 'dkittell'

--Library
DELETE library
FROM library
INNER JOIN content ON content.content_id = library.content_id
INNER JOIN users ON content.user_id = users.user_id
WHERE users.user_name = 'dkittell'

DELETE library
FROM library
INNER JOIN users ON library.user_id = users.user_id
WHERE users.user_name = 'dkittell'

--Tasks History
DELETE task_history
FROM task_history
INNER JOIN tasks ON task_history.task_id = tasks.task_id
INNER JOIN content ON content.content_id = tasks.content_id
INNER JOIN users ON content.user_id = users.user_id
WHERE users.user_name = 'dkittell'

DELETE task_history
FROM task_history
INNER JOIN tasks ON task_history.task_id = tasks.task_id
INNER JOIN users ON tasks.assigned_by_user_id = users.user_id
WHERE users.user_name = 'dkittell'

DELETE task_history
FROM task_history
INNER JOIN tasks ON task_history.task_id = tasks.task_id
INNER JOIN users ON tasks.assigned_to_user_id = users.user_id
WHERE users.user_name = 'dkittell'

--Tasks
DELETE tasks
FROM tasks
INNER JOIN content ON content.content_id = tasks.content_id
INNER JOIN users ON content.user_id = users.user_id
WHERE users.user_name = 'dkittell'

DELETE tasks
FROM tasks
INNER JOIN users ON tasks.assigned_by_user_id = users.user_id
WHERE users.user_name = 'dkittell'

--Content
DELETE content
FROM content
INNER JOIN users ON content.user_id = users.user_id
WHERE users.user_name = 'dkittell'

--Users Table
DELETE
FROM users
WHERE user_name = 'dkittell'
Originally Posted on July 29, 2013
Last Updated on October 26, 2015
All information on this site is shared with the intention to help. Before any source code or program is ran on a production (non-development) system it is suggested you test it and fully understand what it is doing not just what it appears it is doing. I accept no responsibility for any damage you may do with this code.

Related

Code Ektron Ektron User Management MSSQL MSSQL - Ektron MSSQL - Ektron 8.0.2 SQL

Post navigation

Previous post
Next post

Related Posts

Internet DateTime Compare/Sync

Posted on December 9, 2013March 10, 2016

This application should not be used as a replacement for Microsoft’s W32Tm NTP Sync functionality. This application however will help when you do not have that service working. InternetTime Namespace (majority of the code) credit goes to Valer Bocan viewable at http://dotnet-snippets.com/snippet/simple-network-time-ntp-protocol-client/571 NTP Namespace is my addition to Valer’s code,…

Read More

Mac Terminal – Random Readable Password

Posted on February 1, 2017

I recently was challenged to create a random readable password for Mac OS. While I designed this for Mac OS it’s likely it will work with little to no changes on any UNIX system. Password format was two digit number then a word followed by another word with special characters…

Read More

Remove Last N Characters From Column

Posted on September 9, 2015

Recently in a project to list all the plugins in a WordPress site with their versions I had accidently added .0 on to various rows in error. This script was very helpful to correct this error SELECT [id], [siteid], [pluginid], [versioninstalled], LEFT([versioninstalled], LEN([versioninstalled]) – 2), [Activated] FROM [Documentation].[dbo].[tblWP_SiteToPlugin] WHERE RIGHT([versioninstalled],…

Read More

Code

Top Posts & Pages

  • PowerShell - Rename Pictures to Image Taken
  • Front Page
  • C# - Start/Stop/Restart Services
  • MacPorts / HomeBrew - Rip CD tracks from terminal
  • PowerShell - Show File Extensions

Recent Posts

  • Javascript – Digital Clock with Style
  • BASH – Web Ping Log
  • BASH – Picture / Video File Name Manipulation
  • Mac OSX Terminal – Create SSH Key
  • Bash – Rename Picture

Top Posts

  • PowerShell - Rename Pictures to Image Taken
  • C# - Start/Stop/Restart Services
  • MacPorts / HomeBrew - Rip CD tracks from terminal
  • PowerShell - Show File Extensions
  • SQLite - Auto-Increment / Auto Generate GUID
©2025 David Kittell | WordPress Theme by SuperbThemes
 

Loading Comments...
 

You must be logged in to post a comment.