public void deleteScript(final String user, final String name) throws UserNotFoundException,
ScriptNotFoundException, IsActiveException, StorageException {
synchronized (lock) {
File file = getScriptFile(user, name);
if (isActiveFile(user, file)) {
throw new IsActiveException("User: " + user + "Script: " + name);
}
try {
FileUtils.forceDelete(file);
} catch (IOException ex) {
throw new StorageException(ex);