How to delete an enterprise in 1C. Accounting info. Example of deleting a directory item Nomenclature

How to delete documents and directories in 1C 8.3? In the program, you can delete marked objects in two ways:

  • Interactive deletion;
  • Through a mark for deleting objects.

Let's look in detail at examples of how to delete documents marked for deletion in 1C 8.3.

Interactive deletion in 1C

Interactively delete in 1C– this is to delete immediately, without checking referential integrity.

Attention!!! This example shows how it is forbidden do!

In typical configurations, 1C developers have disabled this feature for most documents and reference books:

And what could this lead to if there was such an opportunity? For example, in the demo database configurator we will enable the ability to edit objects, and for the role Full rights for reference books Nomenclature And Counterparties check the box Interactive removal:

Now let's go into user mode and delete a couple of directory elements by first selecting and clicking Shift + Del:

  • Directory Contractors:

  • Directory Nomenclature:

And now in the 1C 8.3 configurator we will launch Testing and fixing and check the referential integrity of the information base. As a result, we get a large number of errors in various objects:

In the user mode of 1C 8.3, for example, in the document Sales of goods we will see broken links, that is, links to objects that no longer exist:

And we just deleted two elements of the directory. What could further work with interactive deletion lead to? Therefore, it is recommended to uncheck the interactive deletion box in 1C 8.3.

Through a mark for deleting objects

With this method of deletion, referential integrity is checked and if the object has links, the object will not be deleted.

Let's consider the following example: in the user mode of 1C 8.3, put a checkmark to delete objects:

  • In the directory Contractors:

  • In the directory Nomenclature:

To directly delete objects marked for deletion in 1C 8.3, you need to start processing . This processing can be started:

  • Main menu – All functions – Processing – Deleting marked objects:

  • Main menu – All functions – Standard – Deleting marked objects:

  • Section Administration – Service – Deleting marked objects:

  • Section Administration – Program settings – Support and maintenance – Deleting marked objects:

  • Section Operations – Service – Deleting marked objects:

Processing “Deleting marked objects”

The “Deleting marked objects” processing allows you to delete in the 1C program without the need for exclusive mode, that is, you can delete objects when users are in the 1C 8.3 infobase:

Also in 1C 8.3 on the form it is possible to set a checkbox “Block all work in the 1C program and speed up deletion”. In this case, exclusive mode will be required for the duration of deletion.

To view the users who are currently working in the infobase and ask them to exit the program while the deletion is running:

  • By clicking on the hyperlink "users(n)" on the form "Deleting marked objects", where n is the number of active users;
  • Section Administration – Program Settings – Support and Maintenance – Active Users;
  • Section Administration – Service – Active users:

Processing allows you to choose one of two deletion modes: automatic or selective deletion of objects in 1C 8.3.

As a result, objects that have no references are automatically deleted:

Here we can indicate which objects we want to delete, leaving the checkboxes enabled. Click on the button Delete. Objects in 1C that do not have links to other objects will be deleted:

Upon completion of the deletion operation, the 1C 8.3 system will show the objects that could not be deleted and their links - in which objects these elements are used:

Here you need to look:

  • Either we mistakenly marked these objects for deletion and we need to uncheck this mark:

  • Either this is a duplicate, then you need to use processing "Search and remove duplicates". This topic is discussed in detail in the article:

After completing this operation in 1C 8.3, our item marked for deletion will no longer have a link to the document Implementation (act, invoice):

  • Or remove references to this object. That is, on the right side of the form “Places of use of the object...” mark the deletion of this object (if it is not needed and was entered incorrectly), or you need to go into these objects and redefine the link:

After completing our manipulations, click on the button To the begining:

Let's go back to the window:

Leave all the checkboxes enabled and click on the button Delete:

Since objects marked for deletion no longer have links, they will be deleted in 1C 8.3.

Attention! Before deleting objects marked for deletion – .

If there was duplication of an employee’s personal data in 1C 8.3 ZUP (several individuals were entered for one person), then it is possible to combine the duplicated cards with the help of a special assistant. How to do this, watch the following video:

Automatic deletion in 1C 8.3 through routine operations

In the 1C program, it is possible to perform automatic deletion using a routine task by setting a schedule.

This function can be configured in the section Administration – Program settings – Support and maintenance – Routine operations, where we check the box “Automatically delete marked objects on a schedule”:

It is advisable to set the schedule for the time when the system is least loaded and no one is working in the 1C 8.3 information base.

Using the example, we will set up a schedule from 05/03/2016, daily from 02:00 a.m. Follow the hyperlink Set up a schedule. Schedule settings – tab Are common:

From this article you will learn how to permanently delete objects marked for deletion in 1C. The fact is that in 1C, deleting objects occurs in 2 stages:
1. Marking for deletion (a small red cross appears in the list of the object)
2. Removing marked objects.

Such a system is necessary because The deleted directory elements can be used in some documents. And if the program allowed you to immediately delete these elements, then they would be deleted from the documents and thus the accounting would be disrupted.

At the stage of deleting marked objects in 1C, a check is made for the use of the deleted objects in other objects. And if they are used, the program does not allow them to be deleted. But the program shows where the deleted objects are used and you, if you wish, can open them and exclude the deleted elements from them, and then repeat the operation of deleting the marked objects.

How to delete objects in 1C 8.3

Let's look in detail at how to finally delete objects marked for deletion in 1C 8.3 using the configuration example, on managed forms - “Trade Management 11.2”.

To begin with - 1 - select the object needed to delete, select it and right-click on it in the window that opens

3 - We see that the objects we have selected are marked with a red cross (see picture below).

4 - In the menu “Master data and administration” - “Administration”. 5 – “Support and Maintenance” (see figure below).

6 - In the “Support and Maintenance” submenu that opens, select “Delete marked objects” and
7 — Put a checkmark next to the “Automatic removal of all marked objects” mode, and then click
8 — “Delete” button (see figure below).

10 - Here we see that deleting marked objects is completed, then click
11 - Click the “Close” button and we can continue further work in the program (see the figure below).

How to delete objects in 1C 8.2

And so, in this article “above” it was already discussed how complete deletion of marked objects occurs in 1C 8.3, i.e. in configurations on managed forms such as UT 11.2
Now, to fully answer the question “how to delete objects marked for deletion in 1C”, it will be necessary to go through the complete deletion procedure again, but using the example of 1C 8.2, i.e. configurations on “regular forms - “Trade Management 10.3”.

To do this we need to go through 11 steps:

1 - First, select the object you need to delete, select it and right-click on it in the window that opens
2 - Select “Set deletion mark” (see figure below).

3 — In the window that appears, click “Yes” (see figure below).

4 - Now we see that the object we selected is marked with a red cross (see picture below).

5 — In the “Operations” menu, select
6 - Deleting marked objects (see figure below).

7 — In the window that opens, click “Yes” (see figure below).

8 — In the “Search and delete marked objects” window, click the “Control” button (see the figure below).

9 — In the “Deleting objects” window that opens, click the “Delete” button (see the figure below).

10 - After all the actions performed, we see that “Objects were deleted”
11 — Click the “Close” button and we can continue working with the program (see the figure below).

You have deleted objects marked for deletion. If you need to delete all documents from the database, you can use

On a note: If the recommendations below are not clear to you, and there are a lot of marked objects in the information base that interfere with your work, then I recommend contacting us - Smart1C.ru.

If we consider the capabilities of standard application solutions - 1C: Trade Management 8, 1C: Accounting 8, 1C: Salary and Personnel Management 8, then in none of them in 1C: Enterprise mode you will not find the ability to directly delete objects, you can only mark objects on deletion. In 1C, you can delete marked objects only by running special processing - by monitoring the possibility of deletion. It is the “Deleting marked objects” processing that checks whether there are references to the objects to be deleted. That is, whether the integrity of the logical structure of the 1C information base will be violated when objects are deleted.

Why is the removal process 2-step? I'll try to answer by simulating the situation. So, let’s imagine that the 1C operator entered data into the Nomenclature Directory in the program. Then, after 5 minutes, I discovered some kind of error, immediately deleted the element and created a new one. It seems like nothing wrong, but another operator had already created a Customer Order document, where he used a directory item, which was subsequently deleted. Accordingly, in the document there will no longer be a link to the nomenclature object; it will be written there that the object has been deleted. That is, the integrity of the database in this case will be violated. Even if you create a Directory element with the same data, it will have a different identifier, and therefore it will no longer be possible to restore the previous state of the information security. That is why the developers approached the process of deleting objects in the program so carefully.

Deleting marked objects in 1C 8.2

Let's look at an example of deleting marked objects in 1C 8.2 (Regular application). But first, I’ll answer a site visitor’s question regarding what and in what mode marked objects are deleted. Deletion occurs in exclusive mode, i.e. only your session should be active in the infobase. Next, we perform the following steps:

Some statistics on deleting 1C objects - client-server architecture 1C information base of 6.5 GB (PostgreSQL), 135,000 objects were marked for deletion, 92,000 of them can be deleted. The control was completed in 4 hours, deletion in 18 hours. Control and removal are not fast processes - I would advise you to first run them on a test base, then you will know the approximate estimated execution time.

/
Administration 1C:Enterprise 7.7

By mistake, a document or directory entry that is no longer needed can be deleted. Deleting records in the 1C program occurs in two stages:

First stage :

Marking objects for deletion that need to be deleted.


Manipulating an object's mark in a window Removing marked objects does not in any way affect the deletion mark in magazines and directories.

Postings operations marked for deletion turn off, postings document - are deleted. When the deletion mark is removed, the transactions are not automatically restored.

Recovery transaction postings select a team menu-> ACTIONS-> Enable postings, For document postings you need to open the document and re-run.

Deleting marked objects without exclusive mode.

If 1C is not running in exclusive mode, you will not be able to use standard uninstallation tools - 1C will display the error “”

How to delete marked objects without exclusive mode?

In a situation where it is not possible to run 1C in exclusive mode, but you need to delete marked objects, the “Deletion” processing, which can be downloaded from us, will help: deletion without exclusive access ( author Alexander Shatsky, modified by me: the speed of work has been significantly increased).

You can start processing in the “Enterprise” mode using the menu command file - open.

The interface is similar to standard processing. If you You don’t want to receive an “Object not found” error instead of the filled-in details - delete only with link control, without using the “Delete all” / “Delete links” checkbox.

Why were some objects unable to be deleted?

Such objects are displayed in the "Cannot be deleted" column. During verification (control), the message “*** from *** selected objects cannot be deleted” will be displayed.

Now why can’t some objects be deleted from the 1C database? It’s just that there are links to these objects in the 1C database. Somewhere in directories, documents, movements, this object is indicated and therefore the system cannot delete it. Such situations corrected manually and here you need a good knowledge of the 1C configuration.

All elements where the object being deleted is used are displayed in the "Links to the object being deleted" list. If it is possible to delete all references to the object being deleted, it will be possible to delete the object itself. If you forcefully delete an object, the system line " will appear in place of references to it "<

Almost every accountant in the course of his work is faced with the need to delete some document in 1C. If you don’t know how to properly delete documents in 1C, our new article is especially for you.

Almost every accountant in the course of his work is faced with the need to delete some file or document. Deleting a document in 1C is not much different from a similar process when working with the Windows operating system. There are a few important differences though:

    firstly, initially the document that needs to be deleted must be marked with a special sign (if we compare it with Windows OS, we can draw an analogy with moving a file to the trash);

    secondly, direct deletion occurs according to a strictly defined algorithm of actions.

If you are using version 1C 8.2, then in order to delete a file you need:

    right-click on the required document;

    wait until the context menu appears;

    mark a specific file for deletion, for which in the list that appears, select “set a deletion mark”;

    give your consent to the system warning.

You can do it simpler and simply press the delete key after selecting the file to be deleted.


After all these manipulations, you will need to go to the main menu item called “Operations” and select the function of deleting marked objects. The system will give you a warning, which you will need to agree to before the program continues.



Next, the system will open a window in front of you where everything in the databases that are marked for deletion will be listed. From this list you have to select those that you want to delete right now. This can be one document or a whole group. When the file or files you are looking for are highlighted, you need to click the "Control" button. This is required in order to check links.


In the process of these actions, it may become clear that, for example, 1C directories contain links to the document to be deleted, or that the tax invoice contains a link that leads to the file that you are going to delete (invoice). To be able to complete the deletion process, you will need to open tax invoices or directories, or those documents that contain links to the file being deleted, and delete these same links. First, you will need to once again weigh the feasibility of such actions.




To avoid further confusion, you will need to recheck later after removing all links. And so on until the check shows that there are no links to the deleted file in other documents. After this, you will have access to the function of deleting marked objects. To complete the entire process, you will need to click on the “delete” button, after which the file will be deleted permanently.